½ºÅ¸ÀϽ¬Æ®(<STYLESHEET>, <STYLE>)¿¡¼­ ÁöÁ¤ÇÑ ½ºÅ¸ÀϵéÀÇ °¢ ¿ä¼Òº° ½ºÅ¸ÀÏÀ» ÂüÁ¶ÇÑ´Ù.

Script [propVal=]..propName;
HTML ¾ø´Ù.
Ư±â

rule °³Ã¼¿¡ Á¤ÀÇµÈ ½ºÅ¸ÀÏ(CSS) ¼Ó¼ºµéÀÌ ¹®¼­ÀÇ ¸ðµç ÇØ´ç ¿¤·¹¸àÆ®¿¡ Àû¿ëµÈ´Ù.
¿¹¸¦µé¾î DT¿¡ color·Î »ö»óÀ» ÁöÁ¤ÇÏ¸ç ¸ðµç DT ¿¤·¹¸àÆ®¿¡ ÁöÁ¤ÇÑ »ö»óÀÌ Àû¿ëµÈ´Ù.

ÂüÁ¶
rules

¼³¸íÀ» À§ÇÑ ¿¹Á¦

DIV ³»¿ë¿¡ styleÀÌ ÁöÁ¤µÇ¾ú´Ù.
<DIV id=dObj cols=40 rows=2 style="border:solid 1 blue;background:dfd">DIV ³»¿ë¿¡ styleÀÌ ÁöÁ¤µÇ¾ú´Ù.</DIV>
<SCRIPT>
obj=document.styleSheets[1];
ln=obj.rules.length;ss=ln+"°³ ";
for (i=0;i< ln;i++){ss+="["+i+"]"+obj.rules[i].selectorText+", ";}
document.write(ss);
oObj=obj.rules[3];
</SCRIPT>

°³Ã¼¼³¸í°á°ú
style °³Ã¼ÀÇ ÇöÀç ¸ðµç °¡´ÉÇÑ ÀζóÀÎ ½ºÅ¸ÀÏ ¼³Á¤µéÀ» ÂüÁ¶ÇÑ´Ù.
<SCRIPT>document.write(oObj.style.cssText.length)</SCRIPT>
<SCRIPT>document.write(document.styleSheets[1].rules[0].selectorText)</SCRIPT>

readOnly ¼Ó¼º IE
¢¡ °³Ã¼°¡ Àбâ Àü¿ëÀΰ¡¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].readOnly
ÄÚµå: document.write(oObj.readOnly); °á°ú:
selectorText ¼Ó¼º IE
¢¡ ½ºÅ¸ÀÏ ³»¿ë(rule)À̾î´À ¿¤·¹¸àÆ® °³Ã¼¿¡ Àû¿ëµÇ´Â°¡¸¦ ¹®ÀÚ¿­·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [sVal=].selectorText
ÄÚµå: document.write(oObj.selectorText); °á°ú:

°³Ã¼ ¿¹Á¦

<STYLE>h1{color:red} .blue{color:blue}</STYLE>
<SCRIPT>
str='document.styleSheets.length=<SPAN class=blue>'+document.styleSheets.length+'</SPAN><BR>';
str+='document.styleSheets[2].cssText=<SPAN class=blue>'+document.styleSheets[2].cssText+'</SPAN><BR>';
str+='document.styleSheets[2].rules.length=<SPAN class=blue>'+document.styleSheets[2].rules.length+'</SPAN><BR>';
str+='document.styleSheets[2].rules[0].selectorText=<SPAN class=blue>'+
  document.styleSheets[2].rules[0].selectorText+'</SPAN><BR>';
str+='document.styleSheets[2].rules[1].selectorText=<SPAN class=blue>'+
  document.styleSheets[2].rules[1].selectorText+'</SPAN><BR>';
document.write(str);
</SCRIPT>