StyleSheet - Web APIs 编辑
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
- Is a
Boolean
representing whether the current stylesheet has been applied or not. StyleSheet.href
Read only- Returns a
DOMString
representing the location of the stylesheet. StyleSheet.media
Read only- Returns a
MediaList
representing the intended destination medium for style information. StyleSheet.ownerNode
Read only- Returns a
Node
associating this style sheet with the current document. StyleSheet.parentStyleSheet
Read only- Returns a
StyleSheet
including this one, if any; returnsnull
if there aren't any. StyleSheet.title
Read only- Returns a
DOMString
representing the advisory title of the current style sheet. StyleSheet.type
Read only- Returns a
DOMString
representing the style sheet language for this style sheet.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Object Model (CSSOM) The definition of 'StyleSheet' in that specification. | Working Draft | No change from Document Object Model (DOM) Level 2 Style Specification. |
Document Object Model (DOM) Level 2 Style Specification The definition of 'StyleSheet' in that specification. | Obsolete | Initial definition. |
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论