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 若没有。

方法

This interface implements no method.

规范

规范 状态 注释
CSS Object Model (CSSOM)
The definition of 'LinkStyle' in that specification.
工作草案 LinkStyle.sheet returns more specialized CSSStyleSheet 而不是 StyleSheet
Document Object Model (DOM) Level 2 Style Specification
The definition of 'LinkStyle' in that specification.
过时 初始定义

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
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 ?

图例

完整支持

完整支持

兼容性未知 ?

兼容性未知

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

元数据

  • 最后修改: