English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Die Eigenschaft align bestimmt die horizontale Ausrichtung des Inhalts in der Zelle. Alle gängigen Browser unterstützen die Eigenschaft align.
Inhalt der Zellen rechtsbündig ausrichten:
<table style="width:100%;" border="1"> thead> <tr> <th>Bücher zur Programmiersprache</th> <th>Preis</th> </tr> </thead> <tbody> <tr> <td align="right">PHP-Basis-Tutorial</td> <td>$50</td> </tr> <tr> <td align="left">JAVA Programming Ideas</td> <td>$80</td> </tr> </tbody> </table>Test see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the align attribute.
Note:All major browsers can correctly handle the "char" value.
HTML5 The <td> align attribute is not supported. Please use CSS instead.
The align attribute specifies the horizontal alignment of the content within the cell.
<td align="left|right|center|justify|char">
Value | Description |
---|---|
left | Align the content to the left (the default value for <td>). |
right | Align the content to the right. |
center | Align the content centrally. |
justify | Extend the line so that each line can have equal width (for example, in newspapers and magazines). |
char | Align the content to the specified character. |