CSS style sheet.
Platform Support
| IE | Mozilla | Netscape | Opera | Safari | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
CSSStyleSheet Constructor() : CSSStyleSheet
CSS style sheet.
|
Show Details | 6.0+ | 1.0+ | no | 9.0+ | 1.0+ | ||
CSSStyleSheet() : CSSStyleSheetCSS style sheet. Returns
|
||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
cssRules
: CSSRuleList
Array of CSSRule objects in the style sheet.
|
Show Details | no | 1.0+ | no | 9.0+ | 1.0+ |
|
||||||
|
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+ |
|
||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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 | ||||||||
|
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 | ||||||||
|
Parameters
Returns
|
||||||||||||||
References
Availability
HTML DOM Level 2|W3C
