javascript styleSheet cssRules[ ]

cssRules[ ] NN 6 IE 5(Mac) DOM 2  

 

Read-only  

Returns a collection of cssRule objects nested within the current styleSheet object. The IE-only equivalent is the rules property. See the cssRules object for a description of this collection object's property and methods; see the cssRule for a description of the individual members of this collection.

 
Example
 
var allCSSRules = document.styleSheets[0].cssRules;
 
Value

Reference to a CSSRules collection object.

 
Default

Array of zero length.


1947,Nickname,Homepage or email,Comments here,Add comment