SYNCERのロゴ
アイキャッチ画像

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で返します。

メソッド

固有のメソッドはありません。

定数

固有の定数はありません。

イベント

固有のイベントハンドラはありません。

サポート状況

クリックすると、バージョンごとの対応状況を確認できます。

FeaturesChromeFirefoxSafariEdgeIEOperaiOS SafariAndroid
ElementCSSInlineStyle
style
  • Twitterでシェア
  • Facebookでシェア
  • Google+でシェア
  • はてなブックマークでシェア
  • pocketに保存
  • LINEでシェア
更新履歴
2017年10月14日 (土)
コンテンツを公開しました。