【发布时间】:2015-08-03 13:52:54
【问题描述】:
当我们在一个表格中拥有多个 thead 和 tfoot 标签时会发生什么?浏览器如何响应它?
【问题讨论】:
-
你为什么要问这个问题?如果你真的需要测试,试试Browser Shots。
-
为什么不测试一下,先生自己看看?
标签: html
当我们在一个表格中拥有多个 thead 和 tfoot 标签时会发生什么?浏览器如何响应它?
【问题讨论】:
标签: html
它只是在现有表格中添加另一个页眉和页脚。
你在这里查看https://jsfiddle.net/no220phd/3/
<table style="width:100%">
<thead>
<tr>
<th>head1 col1</th>
<th>head1 col2</th>
<th>head1 col3</th>
</tr>
</thead>
<thead>
<tr>
<th>head2 col1</th>
<th>head2 col2</th>
<th>head2 col3</th>
</tr>
</thead>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
<tfoot>
<th>foot1 col1</th>
<th>foot1 col2</th>
<th>foot1 col3</th>
</tfoot>
<tfoot>
<th>foot2 col1</th>
<th>foot2 col2</th>
<th>foot2 col3</th>
</tfoot>
</table>
【讨论】: