ij½ºÄÉÀ̵ù ½ºÅ¸ÀϽ¬Æ®(CSS)°¡ ÀÛ¼ºµÈ ¾ð¾î¸¦ ¹ÝȯÇÑ´Ù.
ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
ÀÌ ¼Ó¼º°ªÀº ºó ¹®ÀÚ¿À» Æ÷ÇÔÇÑ ¾î¶² ¹®ÀÚ¿µµ µÉ ¼ö ÀÖ´Ù.
IE4.0¿¡¼´Â "text/css" ÀÌ¿ÜÀÇ °ªÀ» °®´Â ½ºÅ¸ÀϽ¬Æ®´Â Áö¿øÇÏÁö ¾Ê´Â´Ù.
| °³Ã¼ | script | HTML | ±Ô°Ý | IE |
|---|
ÀÌ ¼Ó¼ºÀº HTML 4.0°ú (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
<STYLE type="text/css">
.testClass{color:red}
</STYLE>
<DIV class=testClass>½ºÅ¸ÀÏÀÌ Àû¿ëµÈ DIV</DIV>
<SCRIPT>
str='document.all.tags("STYLE")[0].nodeName='+document.all.tags('STYLE')[0].nodeName+'<BR>';
str+='document.all.tags("STYLE")[0].styleSheet.cssText='+document.all.tags('STYLE')[0].styleSheet.cssText+'<BR>';
str+='document.all.tags("STYLE")[0].type='+document.all.tags('STYLE')[0].type+'<BR>';
document.write(str);
</SCRIPT>