Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
* Some parts of this feature may have varying levels of support.
CSSImportRule は @import アットルールを表します。
CSSRule CSSImportRule祖先である CSSRule から継承したプロパティがあります。
CSSImportRule.href 読取専用@import ルールで指定された URL を返します。
CSSImportRule.layerName 読取専用@import ルールで宣言されたカスケードレイヤーの名前を返します。レイヤーが無名の場合は空文字列、ルールが何も宣言していない場合は null を返します。
CSSImportRule.media関連づけられたスタイルシートの media 属性の値を返します。
CSSImportRule.styleSheet 読取専用関連づけられたスタイルシートを返します。
CSSImportRule.supportsText 読取専用@import ルールで指定した supports の条件を返します。
祖先である CSSRule から継承したメソッドがあります。
この文書には単一のスタイルシートが記述されており、そのスタイルシートには単一の @import ルールだけが含まれています。したがって、 CSS ルールのリストの最初の項目は CSSImportRule になります。
| CSS Object Model (CSSOM) # the-cssimportrule-interface |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年11月9日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.