Mozilla.com
Some features of this site require JavaScript.
« Gecko DOM Reference
Returns all of the CSS rules in the stylesheet as a CSSRuleList, an array-like object.
rules = stylesheet.cssRules
rules is a CSSRuleList of individual cssRule objects. The individual cssRule object can refer to one of the following objects:
rules
cssRule
// get the first style sheet’s first rule first_rule = document.styleSheets[0].cssRules[0];
See DOM cssRule object.
DOM Level 2 Style: CSSStyleSheet.cssRules
Page last modified 05:58, 8 Oct 2007 by Np?
Content is available under these licenses
About MDC
Viewing Details: