aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/cssstyledeclaration/getpropertyvalue
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/cssstyledeclaration/getpropertyvalue
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/cssstyledeclaration/getpropertyvalue')
-rw-r--r--files/ja/web/api/cssstyledeclaration/getpropertyvalue/index.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/files/ja/web/api/cssstyledeclaration/getpropertyvalue/index.html b/files/ja/web/api/cssstyledeclaration/getpropertyvalue/index.html
new file mode 100644
index 0000000000..feb4705491
--- /dev/null
+++ b/files/ja/web/api/cssstyledeclaration/getpropertyvalue/index.html
@@ -0,0 +1,67 @@
+---
+title: CSSStyleDeclaration.getPropertyValue()
+slug: Web/API/CSSStyleDeclaration/getPropertyValue
+tags:
+ - API
+ - CSSOM
+ - Method
+ - Reference
+translation_of: Web/API/CSSStyleDeclaration/getPropertyValue
+---
+<p>{{ APIRef("CSSOM") }}</p>
+
+<p><strong>CSSStyleDeclaration.getPropertyValue()</strong> メソッドインターフェイスは、指定された CSS プロパティの値を含む {{domxref('DOMString')}} を返します。</p>
+
+<h2 id="構文">構文</h2>
+
+<pre class="syntaxbox notranslate">var <em>value</em> = <em>style</em>.getPropertyValue(<em>property</em>);</pre>
+
+<h3 id="パラメータ">パラメータ</h3>
+
+<ul>
+ <li><em><code>property</code></em> は、チェックされるプロパティ名を表す {{domxref('DOMString')}} です。</li>
+</ul>
+
+<h3 id="返り値">返り値</h3>
+
+<ul>
+ <li><code><em>value</em></code> は、プロパティの値を含む {{domxref('DOMString')}} です。設定されていない場合、空の文字列を返します。</li>
+</ul>
+
+<h2 id="例">例</h2>
+
+<p>次の JavaScript コードは CSS セレクタールールの <code>margin</code> プロパティの値をクエリします:</p>
+
+<pre class="brush: js notranslate">var declaration = document.styleSheets[0].cssRules[0].style;
+var value = declaration.getPropertyValue('margin'); // "1px 2px"
+</pre>
+
+<h2 id="仕様">仕様</h2>
+
+<table>
+ <thead>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">ステータス</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('CSSOM', '#dom-cssstyledeclaration-getpropertyvalue', 'CSSStyleDeclaration.getPropertyValue()')}}</td>
+ <td>{{Spec2('CSSOM')}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName('DOM2 Style', 'css.html#CSS-CSSStyleDeclaration', 'CSSStyleDeclaration')}}</td>
+ <td>{{Spec2('DOM2 Style')}}</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザー実装状況">ブラウザー実装状況</h2>
+
+
+
+<p>{{Compat("api.CSSStyleDeclaration.getPropertyValue")}}</p>