From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../getpropertycssvalue/index.html | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 files/ja/web/api/cssstyledeclaration/getpropertycssvalue/index.html (limited to 'files/ja/web/api/cssstyledeclaration/getpropertycssvalue/index.html') diff --git a/files/ja/web/api/cssstyledeclaration/getpropertycssvalue/index.html b/files/ja/web/api/cssstyledeclaration/getpropertycssvalue/index.html new file mode 100644 index 0000000000..f3ce66652d --- /dev/null +++ b/files/ja/web/api/cssstyledeclaration/getpropertycssvalue/index.html @@ -0,0 +1,65 @@ +--- +title: CSSStyleDeclaration.getPropertyCSSValue() +slug: Web/API/CSSStyleDeclaration/getPropertyCSSValue +tags: + - API + - CSSOM + - Method + - Obsolete + - Reference +translation_of: Web/API/CSSStyleDeclaration/getPropertyCSSValue +--- +

{{ APIRef("CSSOM") }} {{Obsolete_header}}

+ +

CSSStyleDeclaration.getPropertyCSSValue() メソッドインターフェイスは、プロパティの CSS 値を含む {{domxref('CSSValue')}} を返します。 プロパティ名が省略プロパティの場合は null を返すことに注意して下さい。

+ +

代わりに {{domxref("CSSStyleDeclaration.getPropertyValue()")}} を使用する必要があります。

+ +

構文

+ +
var value = style.getPropertyCSSValue(property);
+ +

パラメータ

+ + + +

返り値

+ + + +

+ +

次の JavaScript コードは、 color CSS プロパティの計算された RGB 値を含むオブジェクトを取得します:

+ +
var style = window.getComputedStyle(elem, null);
+var rgbObj = style.getPropertyCSSValue('color').getRGBColorValue();
+
+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('DOM2 Style', 'css.html#CSS-CSSStyleDeclaration', 'CSSStyleDeclaration')}}{{Spec2('DOM2 Style')}}2003年7月に廃止と宣言
+ +

ブラウザー実装状況

+ + + +

{{Compat("api.CSSStyleDeclaration.getPropertyCSSValue")}}

-- cgit v1.2.3-54-g00ecf