ElementCSSInlineStyle - style属性を持つHTML要素
ElementCSSInlineStyleは、style属性を持てるHTML要素やSVG要素が実装しているインターフェイスです。
概要
- 名前
- ElementCSSInlineStyle
- IDL
[Exposed=Window, NoInterfaceObject] interface ElementCSSInlineStyle { [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; }; HTMLElement implements ElementCSSInlineStyle; SVGElement implements ElementCSSInlineStyle;
- 仕様書
- https://drafts.csswg.org/cssom/#elementcssinlinestyle
チュートリアル
ElementCSSInlineStyleは、HTMLElementやSVGElementが実装しています。
<p id="hoge">SYNCER</p>
var element = document.getElementById( "hoge" ) ; // ElementCSSInlineStyle
コンストラクタ
コンストラクタはありません。
プロパティ
style
style属性に指定されているスタイルシートのまとまりをCSSStyleDeclarationで返します。
メソッド
固有のメソッドはありません。
定数
固有の定数はありません。
イベント
固有のイベントハンドラはありません。
サポート状況
クリックすると、バージョンごとの対応状況を確認できます。
Features | Chrome | Firefox | Safari | Edge | IE | Opera | iOS Safari | Android |
---|---|---|---|---|---|---|---|---|
ElementCSSInlineStyle | ● | ● | ● | ● | ● | ● | ● | ● |
style | ● | ● | ● | ● | ● | ● | ● | ● |
関連記事
- HTMLQuoteElement
- HTMLQuoteElementは、HTMLのblockquote要素、q要素が共通して実装するインターフェイスです。
- HTMLBaseElement
- HTMLBaseElementは、HTMLのbase要素が実装するインターフェイスです。
- LinkStyle
- LinkStyleは、外部ファイルとしてスタイルシートを読み込む要素が備えるインターフェイスです。
- CSSKeyframeRule
- CSSKeyframeRuleは、@keyframes内の各CSSルールを管理するための機能を備えたインターフェイスです。