CSSStyleSheet
Extends: StyleSheet
Category: browser, cssom
See: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet
- CSSStyleSheet
- new CSSStyleSheet()
- .cssRules :
CSSRuleList - .rules :
CSSRuleList - .href :
DOMString - .type :
DOMString - .insertRule(rule, [index])
- .deleteRule(index)
new CSSStyleSheet()
Represents a CSS style sheet
cssStyleSheet.cssRules : CSSRuleList
Return the list of CSS Rules
Read only
cssStyleSheet.rules : CSSRuleList
Return the list of CSS Rules
Read only
cssStyleSheet.href : DOMString
Read only
cssStyleSheet.type : DOMString
Default: undefined
Read only
cssStyleSheet.insertRule(rule, [index])
Insert a CSS Rule at the specified index.
| Param | Type | Default |
|---|---|---|
| rule | * |
|
| [index] | number |
0 |
cssStyleSheet.deleteRule(index)
Delete the rule at the specified index
| Param | Type |
|---|---|
| index | * |
