DOM:document.styleSheets
出典: MDC
目次 |
[編集] 要約
明示的にリンクされたかドキュメントに埋め込まれたスタイルシート群の stylesheet オブジェクトリストを返します。
[編集] プロパティ
styleSheetList.length - オブジェクトに含まれた stylesheet オブジェクトの数を返します。
[編集] 構文
styleSheetList = document.styleSheets
返されるオブジェクトは StyleSheetList です。
これは、stylesheet オブジェクトの順序つきコレクションです。このインデックス(index は 0 から始まります) によって、styleSheetList.item(index) か単純にstyleSheetList[index] で、一つの stylesheet オブジェクトが返ります。