被禁用
特性为
StyleSheet
interface determines whether the style sheet is prevented from applying to the document.
A style sheet may be disabled by manually setting this property to
true
or if it's an inactive
alternative style sheet
。注意,
disabled == false
does not guarantee the style sheet is applied (it could be removed from the document, for instance).
bool = stylesheet.disabled
// If the stylesheet is disabled...
if (stylesheet.disabled) {
// ... apply styles in-line.
}
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
被禁用
|
Chrome 1 | Edge 12 | Firefox Yes | IE ? | Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes | Firefox Android Yes | Opera Android Yes | Safari iOS Yes | Samsung Internet Android Yes |
完整支持
兼容性未知
StyleSheet
AnimationEvent
CSS
CSSConditionRule
CSSGroupingRule
CSSKeyframeRule
CSSKeyframesRule
CSSMediaRule
CSSNamespaceRule
CSSPageRule
CSSRule
CSSRuleList
CSSStyleDeclaration
CSSStyleRule
CSSStyleSheet
CSSSupportsRule
CaretPosition
LinkStyle
MediaQueryList
MediaQueryListListener
Screen
StyleSheetList
TransitionEvent