Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

HTMLTableElement.align

非推奨
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'; // 中央寄せ配置の指定

仕様書

ドキュメントのタグと貢献者

タグ: 
 このページの貢献者: fscholz, khalid32, ethertank
 最終更新者: khalid32,