HTMLStyleElement

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

此接口不允许操纵它包含 (在大多数情况下) 的 CSS。

 

HTMLStyleElement()

继承层次

Object.prototype
 Function.prototype
  EventTarget
   Node
    Element
     HTMLElement
      HTMLStyleElement

构造函数

程序不能直接调用该构造函数,否则将会产生异常。

属性列表

属性说明
--

方法列表

语法说明
--

HTMLStyleElement.prototype

继承层次

Object.prototype
 EventTarget.prototype
  Node.prototype
   Element.prototype
    HTMLElement.prototype
     HTMLStyleElement.prototype

属性列表

继承了父对象 HTMLElement 和 LinkStyle 的属性。

属性说明
mediaDOMString 代表预期的目标媒体样式信息。
typeDOMString 表示声明类型的样式。
disabled是一个布尔值,表示是否禁用样式表是 (true) 或不 (false)。
LinkStyle.sheet 只读,返回 StyleSheet 对象与给定的元素,如果没有则为 null 。(Returns the StyleSheet object associated with the given element, or null if there is none)
scoped一个布尔值,该值指示是否元素应用到整个文档 (false) 或只与父级的子树 (true)。

方法列表

继承了父对象 HTMLElement 和 LinkStyle 的方法。

语法说明
--

HTMLStyleElement实例

参考

相关链接

外部链接