°³Ã¼ÀÇ ¿À¸¥ÂÊ Å׵θ®(border) »ö»ó°ªÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
ÀÌ °ªÀº »ö»óÇ¥ÀÇ »ö»ó¸íÀ̳ª RGB »ö»ó°ª ÁßÀÇ ÇϳªÀÌ´Ù.
ÀÌ ¼Ó¼ºÀº currentStyle¿¡¼´Â ÀбâÀü¿ëÀÌ°í, ±×¿ÜÀÇ °³Ã¼¿¡¼´Â Àбâ/¾²±âÀ̸ç, µðÆúÆ®°ªÀº ¾ø´Ù.
CSS(Cascading Style Sheets) ¾ÖÆ®¸®ºäÆ®´Â »ó¼ÓµÇÁö ¾Ê´Â´Ù.
IE5.5¿¡¼ ÀÌ ¼Ó¼ºÀº ÀζóÀÎ ¿¤·¹¸àÆ®¿¡ Àû¿ëµÈ´Ù. ÀÌÀü ¹öÀü¿¡¼´Â ÀζóÀÎ ¿¤·¹¸àÆ®´Â position ¼Ó¼º°ªÀÌ absoluteÀ̰ųª ÀÌ ¼Ó¼ºÀ» ÀÌ¿ëÇÏ¿© ¹èÄ¡µÇ¾î¾ß ÇÑ´Ù. height³ª width ¼Ó¼ºÀÇ ¼³Á¤µÈ °ª¿¡ ÀÇÇÏ¿© ¿¤·¹¸àÆ®ÀÇ ¹èÄ¡°¡ °áÁ¤µÈ´Ù.
ÀϺΠºê¶ó¿ìÀú¿¡¼ »ö»óÀ̸§À» ÀνÄÇÏÁö ¸øÇÒ ¼ö ÀÖÁö¸¸, ¸ðµç ºê¶ó¿ìÀú´Â RGB »ö»óÀº ÀνÄÇÏ°í ¿Ã¹Ù¸£°Ô µð½ºÇ÷¹ÀÌÇÏ¿©¾ß ÇÑ´Ù.
°³Ã¼ | script | CSS | IE ¹öÀü |
---|
ÀÌ ¼Ó¼ºÀº CSS2(Cascading Style Sheets Level 2)¿¡ Á¤ÀǵǾú´Ù.
<STYLE> .border1Class { border-right:10px groove pink } .border2Class { border-right:10px dotted pink } .border3Class { border-right:10px solid pink } .border4Class { border-right:10px double pink } .border5Class { border-right:10px inset pink } .noborderClass { border-right:none } button {width:110;margin:2} </STYLE> <SCRIPT> function showAll(){ str='tdObj.className='+tdObj.className+'<BR>'; str+='tdObj.currentStyle.borderRightWidth='+tdObj.currentStyle.borderRightWidth+'<BR>'; str+='tdObj.currentStyle.borderRightStyle='+tdObj.currentStyle.borderRightStyle+'<BR>'; str+='tdObj.currentStyle.borderRightColor='+tdObj.currentStyle.borderRightColor+'<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>