如何在HTML中创建表格页脚?
HTML<tfoot>标记用于在表中添加页脚。TFOOT 标签与结合使用TBODY 标签和THEAD 在确定表(页眉,页脚,身体)的每个部分标签。
示例
您可以尝试运行以下代码在HTML中创建表格页脚-
<!DOCTYPE html>
<html>
<head>
<style>
table, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table style = "width:100%">
<thead>
<tr>
<td colspan = "4">This is the head of the table</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan = "4">This is the footer 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>热门推荐
10 侄儿生日祝福语简短独特
11 拜新年的祝福语简短
12 项目总生日祝福语简短
13 新房开工文案祝福语简短
14 升职蛋糕祝福语大全简短
15 新年留言老师祝福语简短
16 死人新年祝福语简短句
17 春节拜年祝福语儿童简短
18 关云生字祝福语简短