StyleSheet
An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.
Properties
StyleSheet.disabled(en-US)-
Is a
Booleanrepresenting whether the current stylesheet has been applied or not. StyleSheet.href(en-US) 읽기 전용-
Returns a
DOMStringrepresenting the location of the stylesheet. StyleSheet.media(en-US) 읽기 전용-
Returns a
MediaList(en-US) representing the intended destination medium for style information. StyleSheet.ownerNode(en-US) 읽기 전용-
Returns a
Nodeassociating this style sheet with the current document. StyleSheet.parentStyleSheet(en-US) 읽기 전용-
Returns a
StyleSheetincluding this one, if any; returnsnullif there aren't any. StyleSheet.title(en-US) 읽기 전용-
Returns a
DOMStringrepresenting the advisory title of the current style sheet. StyleSheet.type(en-US)읽기 전용-
Returns a
DOMStringrepresenting the style sheet language for this style sheet.
명세서
| Specification |
|---|
| CSS Object Model (CSSOM) # the-stylesheet-interface |
브라우저 호환성
BCD tables only load in the browser