DOM:stylesheet.cssRules
From MDC
Contents |
[edit] Summary
Returns all of the CSS rules in the stylesheet as a CSSRuleList, an array-like object.
[edit] Syntax
rules = stylesheet.cssRules
rules is a CSSRuleList of individual cssRule objects. The individual cssRule object can refer to one of the following objects:
[edit] Example
// get the first style sheet’s first rule first_rule = document.styleSheets[0].cssRules[0];
[edit] Notes
See DOM cssRule object.