非推奨
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.
概要
align は、テーブルの配置位置 (alignment) を取得 / 設定します。
構文
HTMLTableElement.align =alignment; varalignment =HTMLTableElement.align;
引数
-
alignment
非推奨 HTML4 -
以下の内の何れかのキーワードを指定(或いは取得)します。
- left
- center
- right
例
// テーブルの位置を設定する var t = document.getElementById('TableA'); // 対象テーブルを取得 t.align = 'center'; // 中央寄せ配置の指定
仕様書
- W3C DOM 2 HTML 仕様書: HTMLTableElement .align.