Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
CSSImageValue は CSS 型付きオブジェクトモデル API のインターフェイスで、 background-image, list-style-image, border-image-source のような画像を取るプロパティの値を表します。
CSSImageValue オブジェクトは <image> のうち URL に関わるもの、例えば url() や image() を表しますが、 linear-gradient() や element() は表しません。
CSSStyleValue CSSImageValueなし。
CSSStyleValue からメソッドを継承しています。
次のような要素を作成します。
バイナリーファイルを要求する背景画像など、いくつかの CSS を追加しています。
その要素のスタイルマップを取得します。そして、スタイルマップから background-image を取得し、文字列化します。
| CSS Typed OM Level 1 # imagevalue-objects |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年11月8日 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.