StyleSheet

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.

StyleSheet インターフェイスを実装するオブジェクトは、単一のスタイルシートを表します。 CSS スタイルシートは、より特殊化された CSSStyleSheet インターフェイスを実装します。

インスタンスプロパティ

StyleSheet.disabled

論理値で、現在のスタイルシートが適用されているかどうかを示します。

StyleSheet.href 読取専用

文字列で、スタイルシートの位置を返します。

StyleSheet.media 読取専用

MediaList で、スタイル情報の宛先メディアを返します。

StyleSheet.ownerNode 読取専用

Node で、このスタイルシートを現在の文書に関連付けているノードを返します。

StyleSheet.parentStyleSheet 読取専用

存在する場合、これをインクルードしている StyleSheet を返します。ない場合は null を返します。

StyleSheet.title 読取専用

現在のスタイルシートのアドバイザリータイトルを表す文字列を返します。

StyleSheet.type 読取専用

このスタイルシートのスタイルシート言語を表す文字列を返す。

仕様書

Specification
CSS Object Model (CSSOM)
# the-stylesheet-interface

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
StyleSheet
disabled
href
media
ownerNode
parentStyleSheet
title
type

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報