StyleSheet

An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.

属性

StyleSheet.disabled
Is a Boolean representing whether the current stylesheet has been applied or not.
StyleSheet.href 只读
Returns a DOMString representing the location of the stylesheet.
StyleSheet.media 只读
Returns a MediaList representing the intended destination medium for style information.
StyleSheet.ownerNode 只读
Returns a Node associating this style sheet with the current document.
StyleSheet.parentStyleSheet 只读
Returns a StyleSheet including this one, if any; returns null if there aren't any.
StyleSheet.title 只读
Returns a DOMString representing the advisory title of the current style sheet.
StyleSheet.type只读
Returns a DOMString representing the style sheet language for this style sheet.

Specifications

Specification Status Comment
CSS Object Model (CSSOM)
StyleSheet
Working Draft No change from Document Object Model (DOM) Level 2 Style Specification.
Document Object Model (DOM) Level 2 Style Specification
StyleSheet
Recommendation Initial definition.

相关链接

文档标签和贡献者