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  



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.

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

Reference to a CSSRules collection object.


Array of zero length.

Powered by Linode.