ProcessingInstruction: sheet-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 schreibgeschützte sheet-Eigenschaft der ProcessingInstruction-Schnittstelle enthält das Stylesheet, das der ProcessingInstruction zugeordnet ist.

Die xml-stylesheet-Verarbeitungsanweisung wird verwendet, um ein Stylesheet in einer XML-Datei zuzuordnen.

Wert

Das zugeordnete Stylesheet-Objekt oder null, wenn keines vorhanden ist.

Beispiel

xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="rule.css"?>

Die sheet-Eigenschaft der Verarbeitungsanweisung gibt das StyleSheet-Objekt zurück, das rule.css beschreibt.

Spezifikationen

Specification
CSS Object Model (CSSOM)
# dom-linkstyle-sheet

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
sheet

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch