StyleSheet: disabled Eigenschaft
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.
Die disabled
-Eigenschaft des
StyleSheet
-Interfaces bestimmt, ob das Stylesheet daran gehindert wird,
auf das Dokument angewendet zu werden.
Ein Stylesheet kann deaktiviert werden, indem diese Eigenschaft manuell auf true
gesetzt wird oder
wenn es sich um ein inaktives alternatives Stylesheet handelt. Beachten Sie, dass disabled === false
nicht garantiert, dass das Stylesheet angewendet wird (es könnte zum Beispiel aus dem Dokument entfernt werden).
Wert
Ein boolescher Wert.
Beispiele
// If the stylesheet is disabled
if (stylesheet.disabled) {
// Apply styles in-line
}
Spezifikationen
Specification |
---|
CSS Object Model (CSSOM) # dom-stylesheet-disabled |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
disabled |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support