HTMLStyleElement
HTMLStyleElement
インタフェースは <style>
要素を表すインタフェースです。HTMLElement
と LinkStyle
(en-US) のプロパティとメソッドを継承しています。
This interface doesn't allow to manipulate the CSS it contains (in most case). To manipulate CSS, see Using dynamic styling information (en-US) for an overview of the objects used to manipulate specified CSS properties using the DOM.
プロパティ
HTMLElement
および LinkStyle
(en-US) から継承するプロパティの他に、以下の固有プロパティを持ちます。
HTMLStyleElement.media
-
スタイル情報の適用先として意図するメディアを表す
DOMString
HTMLStyleElement.type
(en-US)-
この style 要素のスタイルの種類を表す
DOMString
HTMLStyleElement.disabled
(en-US)-
Boolean
。スタイルシート有効時にはtrue
、無効時にはfalse
を返す。 HTMLStyleElement.scoped
(en-US)-
Boolean
。スタイルの適用対象が文書全体の場合はfalse
、scoped
属性により適用範囲が制限されている場合はtrue
を返す。
メソッド
固有のメソッドは持ちません。
仕様書
Specification |
---|
HTML Standard # htmlstyleelement |
ブラウザーの互換性
BCD tables only load in the browser
関連情報
<style>
-HTMLStyleElement
インタフェースを持つ HTML 要素- 動的スタイル情報の利用 (en-US)