°³Ã¼¿Í °³Ã¼ÀÇ ¸¶ÁøÀ̳ª, Å׵θ®°¡ ÀÖÀ¸¸é °³Ã¼¿Í °³Ã¼ÀÇ Å׵θ®(border) »çÀÌÀÇ °ø°£ °Å¸®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
(±æÀÌ) | ºÎµ¿¼Ò¼öÁ¡¼öÄ¡ ´ÙÀ½¿¡ cm, mm, in, pt, pc³ª px µî ±æÀÌ ´ÜÀ§°¡ µû¸£´Â Àý´ë ±æÀÌ, ȤÀº em or ex µîÀÇ ´ÜÀ§°¡ µû¸£´Â »ó´ë ±æÀÌÀÌ´Ù. CSS ±æÀÌ´ÜÀ§¸¦ ÂüÁ¶Ç϶ó. |
(¹éºÐÀ²) | Á¤¼ö°ª¿¡ ¹éºÐÀ² ±âÈ£(%)¸¦ ºÙÀÎ °ÍÀÌ´Ù. ÀÌ °ªÀº ¸ðü ³Êºñ¿¡ ´ëÇÑ ¹éºÐÀ²ÀÌ´Ù. |
ÀÌ ¼Ó¼ºÀº currentStyle¿¡¼´Â ÀбâÀü¿ëÀÌ°í, ±×¿ÜÀÇ °³Ã¼¿¡¼´Â Àбâ/¾²±âÀ̸ç, µðÆúÆ®°ªÀº TD¿Í TH °³Ã¼¿¡¼ 1ÀÌ°í, ±×¿ÜÀÇ °³Ã¼¿¡¼´Â ¸ðµÎ 0ÀÌ´Ù.
CSS(Cascading Style Sheets) ¾ÖÆ®¸®ºäÆ®´Â »ó¼ÓµÇÁö ¾Ê´Â´Ù.
ÀÌ ¼Ó¼ºÀº ³×°¡Áö °ªÀ» Çѹø¿¡ ¼³Á¤Çϰųª ¹ÝȯÇÒ ¼ö ÀÖ´Â º¹ÇÕ Ãà¾à ¼Ó¼ºÀÌ´Ù.
³×°¡Áö ¼Ó¼ºÀÇ ¼ø¼´Â top, right, botttom, leftÀÌ´Ù.
IE5.5¿¡¼ ÀÌ ¼Ó¼ºÀº ÀζóÀÎ ¿¤·¹¸àÆ®¿¡ Àû¿ëµÈ´Ù. ÀÌÀü ¹öÀü¿¡¼´Â ÀζóÀÎ ¿¤·¹¸àÆ®´Â position ¼Ó¼º°ªÀÌ absoluteÀ̰ųª ÀÌ ¼Ó¼ºÀ» ÀÌ¿ëÇÏ¿© ¹èÄ¡µÇ¾î¾ß ÇÑ´Ù. height³ª width ¼Ó¼ºÀÇ ¼³Á¤µÈ °ª¿¡ ÀÇÇÏ¿© ¿¤·¹¸àÆ®ÀÇ ¹èÄ¡°¡ °áÁ¤µÈ´Ù.
À½¼ö°ªÀº Çã¿ëµÇÁö ¾Ê´Â´Ù.
°³Ã¼ | script | CSS | IE ¹öÀü |
---|
ÀÌ ¼Ó¼ºÀº CSS1(Cascading Style Sheets, Level 1)¿¡¼ Á¤ÀǵǾú´Ù.
<STYLE>.but{width:60}</STYLE> <SCRIPT>function doShow(){showA.innerHTML=divObj.style.padding}</SCRIPT> <DIV id=divObj style="width:480;border:solid 1 blue;background-color:aqua;padding:10">DIV ¹®´ÜÀÇ ³»¿ë ÅؽºÆ®</DIV> <BUTTON onclick="divObj.style.padding='0';doShow()" class=but>0</BUTTON> <BUTTON onclick="divObj.style.padding='5';doShow()" class=but>5</BUTTON> <BUTTON onclick="divObj.style.padding='10';doShow()" class=but>10</BUTTON> <BUTTON onclick="divObj.style.padding='10pt';doShow()" class=but>10pt</BUTTON> <BUTTON onclick="divObj.style.padding='1mm';doShow()" class=but>1mm</BUTTON> <BUTTON onclick="divObj.style.padding='1cm';doShow()" class=but>1cm</BUTTON> <BUTTON onclick="divObj.style.padding='1em';doShow()" class=but>1em</BUTTON> <BUTTON onclick="divObj.style.padding='2.5em';doShow()" class=but>2.5em</BUTTON> <DIV>divObj.style.padding=<SPAN id=showA>10px</SPAN></DIV>