A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/zh-CN/docs/Web/API/HTMLStyleElement below:

HTMLStyleElement - Web API | MDN

HTMLStyleElement

Baseline Widely available *

HTMLStyleElement 接口表示 <style> 元素。它从 HTMLElement 和 LinkStyle 中继承属性和方法。

这个接口不允许修改包含其中的 CSS(大多数情况下)。如果需要修改 CSS,前往关于使用动态样式的信息查看在 DOM 中用于修改特定 CSS 属性的对象。

must be a string

属性

Inherits properties from its parent, HTMLElement, and implements LinkStyle.

HTMLStyleElement.media

Is a DOMString representing the intended destination medium for style information.

HTMLStyleElement.type

Is a DOMString representing the type of style being applied by this statement.

HTMLStyleElement.disabled

Is a Boolean value representing whether or not the stylesheet is disabled (true) or not (false).

LinkStyle.sheet 只读

Returns the StyleSheet object associated with the given element, or null if there is none

HTMLStyleElement.scoped 非标准 已弃用

Is a Boolean value indicating if the element applies to the whole document (false) or only to the parent's sub-tree (true).

方法

No specific method; inherits properties from its parent, HTMLElement, and LinkStyle.

规范 浏览器兼容性 参见

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4