HTML <tfoot>标签用于在表中添加页脚。
<!DOCTYPE html> <html> <head> <title>HTML tfoot Tag</title> </head> <body> <table style="width:100%" border="1"> <thead> <tr> <td colspan="4">This is the head of the table</td> </tr> </thead> <tfoot> <tr> <td colspan="4">This is the foot of the table</td> </tr> </tfoot> <tbody> <tr> <td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td> <td>Cell 4</td> </tr> <tr> ...more rows here containing four cells... </tr> </tbody> <tbody> <tr> <td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td> <td>Cell 4</td> </tr> <tr> ...more rows here containing four cells... </tr> </tbody> </table> </body> </html>
这将产生以下结果-
此标签支持- HTML属性参考中所述的所有全局属性。
HTML <tfoot>标签还支持以下附加属性-
Attribute | Value | 描述 |
---|---|---|
align | right left center justify char |
不推荐使用-对齐方式。 |
char | character | 不推荐使用-指定要在其上对齐文本的字符。在align =“ char”时使用 |
charoff | pixels or % | 不推荐使用-指定与char属性指定的第一个字符的对齐偏移量。在align =“ char”时使用 |
valign | top middle bottom baseline |
不推荐使用-垂直对齐。 |
此标签支持- HTML事件参考中所述的所有事件属性。
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
Python实战 · 从0到1搭建直播视频平台 -〔Barry〕