From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/cssvalue/csstext/index.html | 61 ++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 files/ja/web/api/cssvalue/csstext/index.html (limited to 'files/ja/web/api/cssvalue/csstext/index.html') diff --git a/files/ja/web/api/cssvalue/csstext/index.html b/files/ja/web/api/cssvalue/csstext/index.html new file mode 100644 index 0000000000..257c47bb63 --- /dev/null +++ b/files/ja/web/api/cssvalue/csstext/index.html @@ -0,0 +1,61 @@ +--- +title: CSSValue.cssText +slug: Web/API/CSSValue/cssText +tags: + - API + - CSSValue + - Property + - Reference + - cssText +translation_of: Web/API/CSSValue/cssText +--- +
{{APIRef("DOM")}}
+ +

{{domxref("CSSValue")}} インターフェイスの cssText プロパティは、現在計算されている CSS プロパティ値を表します。

+ +

構文

+ +
cssText = cssValue.cssText;
+
+ +

+ +

現在の CSS プロパティ値を表す {{domxref("DOMString")}} 。

+ +

+ +
var styleDeclaration = document.styleSheets[0].cssRules[0].style;
+var cssValue = styleDeclaration.getPropertyCSSValue("color");
+console.log(cssValue.cssText);
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('DOM2 Style', 'css.html#CSS-CSSValue-cssText', 'CSSValue.cssText')}}{{Spec2('DOM2 Style')}}初回定義
+ +

ブラウザー実装状況

+ +
+ + +

{{Compat("api.CSSValue.cssText")}}

+
+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf