Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. stylesheet.cssRules

« Gecko DOM Reference

Summary

Returns all of the CSS rules in the stylesheet as a CSSRuleList, an array-like object.

Syntax

rules = stylesheet.cssRules 

rules is a CSSRuleList of individual cssRule objects. The individual cssRule object can refer to one of the following objects:

Example

// get the first style sheet’s first rule
first_rule = document.styleSheets[0].cssRules[0];

Notes

See DOM cssRule object.

Languages

Page last modified 05:58, 8 Oct 2007 by Np?

Files (0)