CSSValue
インターフェイスの cssText
プロパティは、現在計算されている CSS プロパティ値を表します。
構文
cssText = cssValue.cssText;
値
現在の CSS プロパティ値を表す DOMString
。
例
var styleDeclaration = document.styleSheets[0].cssRules[0].style;
var cssValue = styleDeclaration.getPropertyCSSValue("color");
console.log(cssValue.cssText);
仕様
仕様 | ステータス | 備考 |
---|---|---|
Document Object Model (DOM) Level 2 Style Specification CSSValue.cssText の定義 |
廃止された | 初回定義 |
ブラウザー実装状況
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.