LinkStyle

LinkStyle interface provides access to the associated CSS style sheet of a node.

LinkStyle is a raw interface and no object of this type can be created; it is implemented by HTMLLinkElement and HTMLStyleElement 对象。

特性

There is no inherited property.

LinkStyle.sheet 只读
返回 CSSStyleSheet object associated with the given element, or null if there is none.

方法

This interface implements no method.

规范

规范 状态 Comment
CSS Object Model (CSSOM)
The definition of 'LinkStyle' in that specification.
工作草案 LinkStyle.sheet returns more specialized CSSStyleSheet instead of StyleSheet
Document Object Model (DOM) Level 2 Style Specification
The definition of 'LinkStyle' in that specification.
Obsolete 初始定义

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
LinkStyle
Chrome ? Edge ≤18 Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
sheet
Chrome ? Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

图例

完整支持
完整支持
兼容性未知
兼容性未知
实验。期望将来行为有所改变。
实验。期望将来行为有所改变。