English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
align属性指定 <tfoot>元素内内容的水平对齐方式。IE无法正确处理表中的“ justify”值,IE会将内容居中。
将内容在<tfoot>元素内居中对齐:
<table style="width:100%;" border="1"> <tr> <th>程序语言书籍</th> <th>价格</th> </tr> <tr> <td align="right">PHP基础教程</td> <td>段30</td> </tr> <tr> <td align="left">JAVA编程思想</td> <td>段80</td> </tr> <tfoot align="center"> <tr> <td>总计</td> <td>段110</td> </tr> </tfoot> </table>Test to 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 correctly handle the "char" value.
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 | Stretch the line so that each line can have equal width (as in newspapers and magazines). |
char | Align content to a specified character. |