aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/element/clientwidth/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/element/clientwidth/index.html')
-rw-r--r--files/ja/web/api/element/clientwidth/index.html65
1 files changed, 0 insertions, 65 deletions
diff --git a/files/ja/web/api/element/clientwidth/index.html b/files/ja/web/api/element/clientwidth/index.html
deleted file mode 100644
index 47753e0077..0000000000
--- a/files/ja/web/api/element/clientwidth/index.html
+++ /dev/null
@@ -1,65 +0,0 @@
----
-title: Element.clientWidth
-slug: Web/API/Element/clientWidth
-tags:
- - API
- - CSSOM View
- - Property
- - Reference
- - プロパティ
-translation_of: Web/API/Element/clientWidth
----
-<div>{{APIRef("DOM")}}</div>
-
-<p><code><strong>Element.clientWidth</strong></code> プロパティは、インライン要素や CSS のない要素ではゼロになります。それ以外では、要素の内側の寸法をピクセル単位で表します。パディングは含みますが、境界、マージン、 (もしあれば) 垂直スクロールバーは含みません。</p>
-
-<p><code>clientWidth</code> がルート要素 (<code>&lt;html&gt;</code> 要素) (または文書が後方互換モードである場合は <code>&lt;body&gt;</code>) に使用された場合、 (スクロールバーの幅を除く) ビューポートの幅が返されます。<a href="https://www.w3.org/TR/2016/WD-cssom-view-1-20160317/#dom-element-clientwidth">これは <code>clientWidth</code></a> の特例です。</p>
-
-<div class="note">
-<p><strong>メモ:</strong> このプロパティは値を整数値に丸めます。小数値が必要であれば、 {{ domxref("element.getBoundingClientRect()") }} を使用してください。</p>
-</div>
-
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="syntaxbox">var <var>intElemClientWidth</var> = <var>element</var>.clientWidth;</pre>
-
-<p><code><var>intElemClientWidth</var></code> は <code><var>element</var></code> の <code>clientWidth</code> をピクセル数で表す整数値です。 <code>clientWidth</code> プロパティは読み取り専用です。</p>
-
-<h2 id="Example" name="Example">例</h2>
-
-<p><img alt="Image:Dimensions-client.png" class="internal" src="/@api/deki/files/185/=Dimensions-client.png"></p>
-
-<h2 id="Specification" name="Specification">仕様書</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">状態</th>
- <th scope="col">備考</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSSOM View', '#dom-element-clientwidth', 'clientWidth')}}</td>
- <td>{{Spec2("CSSOM View")}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h3 id="Notes" name="Notes">メモ</h3>
-
-<p><code>clientWidth</code> は MS IE DHTML オブジェクトモデルにおいて初めて導入されました。</p>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-
-<p>{{Compat("api.Element.clientWidth")}}</p>
-
-<h2 id="See_also" name="See_also">関連情報</h2>
-
-<ul>
- <li>{{domxref("HTMLElement.offsetWidth")}}</li>
- <li>{{domxref("Element.scrollWidth")}}</li>
- <li><a href="/ja/docs/Web/API/CSS_Object_Model/Determining_the_dimensions_of_elements">要素の寸法の決定</a></li>
-</ul>