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
|
||||||||
Inherited Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
disabled
: Boolean
If true, indicates that the stylesheet is disabled.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
href
: String
URL for the stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
media
: MediaList
List of media types that the stylesheet should be associated with.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
ownerNode
: Node
Document node that contains the link to the stylesheet.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
parentStyleSheet
: StyleSheet
Parent stylesheet to this stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
title
: String
Title of the stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
type
: String
MIME type for the stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
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
