°³Ã¼ÀÇ ¾Æ·¡ÂÊ Å׵θ®(border) ³Êºñ(µÎ²²)¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
cssSelector : (½ºÅ¸ÀÏ ¼±ÅÃÀÚ)
¼Ó¼ºÀ» °¡Áú¼ö ÀÖ´Â ¿¤·¹¸àÆ®()³ª Ŭ¶ó½º(class) À̸§ ȤÀº ÀνÄÀÚ(id)ÀÌ´Ù.

: (¼Ó¼º ¹®ÀÚ¿­)
½ºÅ¸ÀÏ ¼Ó¼ºÀº °³Ã¼ÀÇ ¾Æ·¡ÂÊ Å׵θ® ³Êºñ(µÎ²²)¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

medium µðÆúÆ®À̸ç, Å׵θ®°¡ Áß°£ »óÅÂÀÌ´Ù.
thin Å׵θ®°¡ ¾ãÀº »óÅÂÀÌ´Ù.
thick Å׵θ®°¡ µÎ²¨¿î »óÅÂÀÌ´Ù.
(³Êºñ) ºÎµ¿¼Ò¼öÁ¡¼öÄ¡ ´ÙÀ½¿¡ cm, mm, in, pt, pc³ª px µî ±æÀÌ ´ÜÀ§°¡ µû¸£´Â Àý´ë ±æÀÌ, ȤÀº em or ex µîÀÇ ´ÜÀ§°¡ µû¸£´Â »ó´ë ±æÀÌÀÌ´Ù. CSS ±æÀÌ´ÜÀ§¸¦ ÂüÁ¶Ç϶ó.

ÀÌ ¼Ó¼ºÀº currentStyle¿¡¼­´Â ÀбâÀü¿ëÀÌ°í, ±×¿ÜÀÇ °³Ã¼¿¡¼­´Â Àбâ/¾²±âÀ̸ç, µðÆúÆ®°ªÀº mediumÀÌ´Ù.

CSS(Cascading Style Sheets) ¾ÖÆ®¸®ºäÆ®´Â »ó¼ÓµÇÁö ¾Ê´Â´Ù.

Ư±â

IE5.5¿¡¼­ ÀÌ ¼Ó¼ºÀº ÀζóÀÎ ¿¤·¹¸àÆ®¿¡ Àû¿ëµÈ´Ù. ÀÌÀü ¹öÀü¿¡¼­´Â ÀζóÀÎ ¿¤·¹¸àÆ®´Â position ¼Ó¼º°ªÀÌ absoluteÀ̰ųª ÀÌ ¼Ó¼ºÀ» ÀÌ¿ëÇÏ¿© ¹èÄ¡µÇ¾î¾ß ÇÑ´Ù. height³ª width ¼Ó¼ºÀÇ ¼³Á¤µÈ °ª¿¡ ÀÇÇÏ¿© ¿¤·¹¸àÆ®ÀÇ ¹èÄ¡°¡ °áÁ¤µÈ´Ù.

Àû¿ë
°³Ã¼scriptCSS IE ¹öÀü
ÂüÁ¶
border borderBottom borderBottomColor borderBottomStyle borderBottomWidth

ÀÌ ¼Ó¼ºÀº CSS1(Cascading Style Sheets, Level 1)¿¡¼­ Á¤ÀǵǾú´Ù.



°á°ú Ç¥½Ãâ
<STYLE>
.border1Class { border-bottom:10px groove pink }
.border2Class { border-bottom-width:20px;border-bottom-style:outset}
.border3Class { border-bottom-width:20;border-bottom-style:solid;border-bottom-color:red }
.border4Class { border-bottom:10px double pink }
.border5Class { border-width:5 10 15 20;border-style:solid dotted;border-color:pink }
.noborderClass { border-bottom:none }
button {width:110;margin:2}
</STYLE>
<SCRIPT>
function showAll(){
  str='tdObj.className='+tdObj.className+'<BR>';
  str+='tdObj.currentStyle.borderBottomWidth='+tdObj.currentStyle.borderBottomWidth+'<BR>';
  str+='tdObj.currentStyle.borderBottomStyle='+tdObj.currentStyle.borderBottomStyle+'<BR>';
  str+='tdObj.currentStyle.borderBottomColor='+tdObj.currentStyle.borderBottomColor+'<BR>';
  showA.innerHTML=str;
}
</SCRIPT>
<TABLE border cellspacing=5>
<TR>
<TD id="tdObj"><IMG src="../../gif/flower.jpg" width="330"></TD>
</TR>
</TABLE>
<BUTTON onclick="tdObj.className='noborderClass';showAll()">noborderClass</BUTTON>
<BUTTON onclick="tdObj.className='border1Class';showAll()">border1Class</BUTTON>
<BUTTON onclick="tdObj.className='border2Class';showAll()">border2Class</BUTTON><BR>
<BUTTON onclick="tdObj.className='border3Class';showAll()">border3Class</BUTTON>
<BUTTON onclick="tdObj.className='border4Class';showAll()">border4Class</BUTTON>
<BUTTON onclick="tdObj.className='border5Class';showAll()">border5Class</BUTTON>
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>