DOM

DocumentOrShadowRoot.styleSheets プロパティ

 編集:2022.09.07 by T.A.

[Edge]読取専用 実験的。→

実験的: これは実験的な機能です。本番で使用する前にブラウザー互換性一覧表をチェックしてください。

Document または ShadowRoot に明示的に、リンクまたは埋め込まれたスタイルシートのリストを StyleSheetList で返します。

構文
Document.styleSheets
Document Document または ShadowRoot

StyleSheetListCSSStyleSheet オブジェクトのリスト)。

function getStyleSheet(unique_title) {
  for (var i=0; i

テスト

以下のCSSが組み込んであります: