blob: b80c15c978ddc4e01ba92c19b57be43446353a96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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>
|