CSS style sheet.
Platform Support
| IE | Mozilla | Netscape | Opera | Safari | Chrome | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | ||
|---|---|---|---|---|---|---|---|---|---|
|
CSSStyleSheet Constructor() : CSSStyleSheet
CSS style sheet.
|
Show Details | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ | no | ||
CSSStyleSheet() : CSSStyleSheetCSS style sheet. Returns
|
|||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome |
|---|---|---|---|---|---|---|---|
|
cssRules
: CSSRuleList
Array of CSSRule objects in the style sheet.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ | no |
|
|||||||
|
ownerRule
: CSSRule
Specifies the CSSImportRule object for imported style sheets. Specifies null if the style sheet is not imported.
|
Show Details | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ | no |
|
|||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
deleteRule(Number index) : void
Deletes a CSS rule at the specified position in the CSSRules array.
|
Show Details | no | 1.0+ | no | 9.0+ | no | no | ||||||||
|
Parameters
Returns
|
|||||||||||||||
|
insertRule(String rule, Number index) : Object
Inserts the specified rule into the style sheet at the specified position.
|
Show Details | no | 1.0+ | no | 9.0+ | no | no | ||||||||
|
Parameters
Returns
|
|||||||||||||||
References
Availability
HTML DOM Level 2|W3C