这里有一个简单的表格,其中tbody在thead之前。
虽然thead在tbody之前,但这个表格仍然可以正常工作。不过这种写法在所有现代浏览器中都有效吗?
我这样做是为了解决标题固定的问题。
<table>
<tbody>
<tr>
<td>One</td>
<td>Two</td>
<td>Three</td>
</tr>
<tbody>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<table>