diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/htmltableelement/cellpadding/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/htmltableelement/cellpadding/index.html')
-rw-r--r-- | files/ja/web/api/htmltableelement/cellpadding/index.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/files/ja/web/api/htmltableelement/cellpadding/index.html b/files/ja/web/api/htmltableelement/cellpadding/index.html new file mode 100644 index 0000000000..ad8f63fa79 --- /dev/null +++ b/files/ja/web/api/htmltableelement/cellpadding/index.html @@ -0,0 +1,31 @@ +--- +title: HTMLTableElement.cellPadding +slug: Web/API/HTMLTableElement/cellPadding +tags: + - DOM + - Gecko + - Gecko DOM Reference +translation_of: Web/API/HTMLTableElement/cellPadding +--- +<div> + {{Apiref()}}</div> +<h2 id="Summary" name="Summary">概要</h2> +<p><b>cellPadding</b> は、テーブルの各セル全ての余白の設定 / 取得に用います。</p> +<h2 id="Syntax" name="Syntax">構文</h2> +<pre class="syntaxbox"><i>HTMLTableElement</i>.cellPadding = <var>padding</var>; +<var>padding</var> =<i>HTMLTableElement</i>.cellPadding;</pre> +<ul> + <li>変数 <code>padding</code> は "10" の様な絶対値(ピクセル幅、単位無し)、或いは "100%" の様な相対値となります。</li> +</ul> +<h2 id="Example" name="Example">例</h2> +<pre class="brush:js">// テーブルのセルの余白を 10px に設定する例 + +var t = document.getElementById("TableA"); // 対象とする table 要素への参照を代入 +t.cellPadding = "10"; // 設定</pre> +<h2 id="Specification" name="Specification">仕様書</h2> +<ul> + <li>W3C DOM 2 HTML 仕様書: <a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-59162158"> + <i> + HTMLTableElement</i> + .cellPadding</a>.</li> +</ul> |