ProcessingInstruction: sheet 屬性
ProcessingInstruction 介面中只讀的 sheet 屬性包含與 ProcessingInstruction 相關聯的樣式表。
xml-stylesheet 處理指令用於將樣式表與 XML 檔案關聯。
值
相關的 Stylesheet 物件,如果沒有則為 null。
示例
xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="rule.css"?>
…
處理指令的 sheet 屬性將返回描述 rule.css 的 StyleSheet 物件。
規範
| 規範 |
|---|
| CSS 物件模型 (CSSOM) # dom-linkstyle-sheet |
瀏覽器相容性
載入中…
另見
- DOM API