From 52c12c1c3a8a92091f5caadf2cd1cc632b345d39 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 18 Jul 2021 23:58:20 +0900 Subject: Web/API/CSSStyleDeclaration 以下を更新 (#1482) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Web/API/CSSStyleDeclaration/cssText を新規翻訳 2021/06/13 時点の英語版に基づき新規翻訳 * Web/API/CSSStyleDeclaration 以下を整備 Web/API/CSSStyleDeclaration 以下について、2021/07/10時点の内容に同期。未翻訳の記事については新規翻訳 --- .../getpropertyvalue/index.html | 58 +++++++--------------- 1 file changed, 19 insertions(+), 39 deletions(-) (limited to 'files/ja/web/api/cssstyledeclaration/getpropertyvalue') diff --git a/files/ja/web/api/cssstyledeclaration/getpropertyvalue/index.html b/files/ja/web/api/cssstyledeclaration/getpropertyvalue/index.html index feb4705491..6b403a875b 100644 --- a/files/ja/web/api/cssstyledeclaration/getpropertyvalue/index.html +++ b/files/ja/web/api/cssstyledeclaration/getpropertyvalue/index.html @@ -2,66 +2,46 @@ title: CSSStyleDeclaration.getPropertyValue() slug: Web/API/CSSStyleDeclaration/getPropertyValue tags: - - API - - CSSOM - - Method - - Reference +- API +- CSSOM +- Method +- Reference +browser-compat: api.CSSStyleDeclaration.getPropertyValue translation_of: Web/API/CSSStyleDeclaration/getPropertyValue ---

{{ APIRef("CSSOM") }}

CSSStyleDeclaration.getPropertyValue() メソッドインターフェイスは、指定された CSS プロパティの値を含む {{domxref('DOMString')}} を返します。

-

構文

+

構文

-
var value = style.getPropertyValue(property);
+
var value = style.getPropertyValue(property);
-

パラメータ

+

引数

-

返り値

+

返値

-

+

-

次の JavaScript コードは CSS セレクタールールの margin プロパティの値をクエリします:

+

次の JavaScript コードは、 CSS セレクター規則の margin プロパティの値を問い合わせます。

-
var declaration = document.styleSheets[0].cssRules[0].style;
+
var declaration = document.styleSheets[0].cssRules[0].style;
 var value = declaration.getPropertyValue('margin'); // "1px 2px"
 
-

仕様

+

Specifications

- - - - - - - - - - - - - - - - - - - - -
仕様ステータス備考
{{SpecName('CSSOM', '#dom-cssstyledeclaration-getpropertyvalue', 'CSSStyleDeclaration.getPropertyValue()')}}{{Spec2('CSSOM')}}
{{SpecName('DOM2 Style', 'css.html#CSS-CSSStyleDeclaration', 'CSSStyleDeclaration')}}{{Spec2('DOM2 Style')}}
+{{Specifications}} -

ブラウザー実装状況

+

ブラウザーの互換性

- - -

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

+

{{Compat}}

-- cgit v1.2.3-54-g00ecf