aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/htmltableelement/align
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/htmltableelement/align')
-rw-r--r--files/ja/web/api/htmltableelement/align/index.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/files/ja/web/api/htmltableelement/align/index.html b/files/ja/web/api/htmltableelement/align/index.html
new file mode 100644
index 0000000000..b80c15c978
--- /dev/null
+++ b/files/ja/web/api/htmltableelement/align/index.html
@@ -0,0 +1,44 @@
+---
+title: HTMLTableElement.align
+slug: Web/API/HTMLTableElement/align
+tags:
+ - DOM
+ - Gecko
+translation_of: Web/API/HTMLTableElement/align
+---
+<div>{{ Apiref()}} {{deprecated_header()}}</div>
+
+<h2 id="Summary" name="Summary">概要</h2>
+
+<p><strong>align</strong> は、テーブルの配置位置 (alignment) を取得 / 設定します。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox"><em>HTMLTableElement</em>.align =<em>alignment</em>;
+var<em>alignment</em> =<em>HTMLTableElement</em>.align;</pre>
+
+<h3 id="Parameters" name="Parameters">引数</h3>
+
+<dl>
+ <dt><code>alignment</code> {{deprecatedGeneric('inline','HTML4')}}</dt>
+ <dd>以下の内の何れかのキーワードを指定(或いは取得)します。
+ <ul>
+ <li>left</li>
+ <li>center</li>
+ <li>right</li>
+ </ul>
+ </dd>
+</dl>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush:js">// テーブルの位置を設定する
+
+var t = document.getElementById('TableA'); // 対象テーブルを取得
+t.align = 'center'; // 中央寄せ配置の指定</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-23180977"><em>HTMLTableElement</em> .align</a>.</li>
+</ul>