HTMLStyleElement

HTMLStyleElement インタフェースは <style> 要素を表すインタフェースです。HTMLElementLinkStyle (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。スタイルの適用対象が文書全体の場合は falsescoped 属性により適用範囲が制限されている場合は true を返す。

メソッド

固有のメソッドは持ちません。

仕様書

Specification
HTML Standard
# htmlstyleelement

ブラウザーの互換性

BCD tables only load in the browser

関連情報