Javascript Reference
Categories: styleSheet

javascript styleSheet cssRules[ ]

@Aug. 15, 2009, 12:27 p.m.
cssRules[ ] Firefox/Netscape/NN 6 IE 5(Mac) Chrome/Safari/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.


Powered by Linode.