英 [fʊt] 美 [fʊt]
n.脚;底部;英尺(=12 英寸或 30。48 厘米);脚步
vt.走,踏
vt.& vi.结算,总计,共计
第三人称单数: foots 复数: feet 现在分词: footing 过去式: footed 过去分词: footed
html tfoot标签 语法
作用:定义表格的页脚(脚注或表注)。该标签用于组合 HTML 表格中的表注内容。
说明:tfoot 元素应该与 thead 和 tbody 元素结合起来使用。thead 元素用于对 HTML 表格中的表头内容进行分组,而 tbody 元素用于对 HTML 表格中的主体内容进行分组。
注释:如果您使用 thead、tfoot 以及 tbody 元素,您就必须使用全部的元素。它们的出现次序是:thead、tfoot、tbody,这样浏览器就可以在收到所有数据前呈现页脚了。您必须在 table 元素内部使用这些标签。
html tfoot标签 示例
<html>
<head>
<style type="text/css">
thead {color:green}
tbody {color:blue;height:50px}
tfoot {color:red}
</style>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
</table>
</body>
</html>运行实例 »
点击 "运行实例" 按钮查看在线实例