English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Die align-Attribute gibt die Horizontale Ausrichtung des Inhalts im <tfoot>-Element an. IE kann den Wert "justify" in der Tabelle nicht korrekt verarbeiten, IE zentriert den Inhalt.
Inhalt in <tfoot>-Element zentriert ausrichten:
<table style="width:100%;" border="1"> <tr> <th>Programmiersprache Bücher</th> <th>Preis</th> </tr> <tr> <td align="right">PHP Grund教程</td> <td>$30</td> </tr> <tr> <td align="left">JAVA Programmierungsgedanken</td> <td>$80</td> </tr> <tfoot align="center"> <tr> <td>Summe</td> <td>$110</td> </tr> </tfoot> </table>Test see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the align attribute.
Note:IE cannot handle the "justify" value correctly, IE will process it as centered.
Note:Almost no browsers can handle the "char" value correctly.
HTML5 The <tfoot> align attribute is not supported. Use CSS instead.
The align attribute specifies the horizontal alignment of the content within the <tfoot> element.
<tfoot align="left|right|center|justify|char">
Value | Description |
---|---|
left | Left-align the content (default value). |
right | Right-align the content. |
center | Center the content. |
justify | Expand the line so that each line can have equal width (as in newspapers and magazines). |
char | Align the content to a specified character. |