<thead><tbody><tfooter>这三个具体是干啥的
具体是干啥的
具体是干啥的
2018-12-25
<table border="1"> <tfooter> <tr> <td> 这是猪</td> <td>这是猪</td> <td>这是猪</td> </tr> </thead>
<thead> <tr> <td> 不是猪</td> <td>不是猪</td> <td>不是猪</td> </tr> </thead>
<tbody> <tr> <td> 你是猪</td> <td>你是猪</td> <td>你是猪</td> </tr> </tbody>
</table>
以上代码表示出来的应该是
不是猪 不是猪 不是猪
你是猪 你是猪 你是猪
这是猪 这是猪 这是猪
在一个表格中,th代表 表头;tr代表一行;td代表一个单元格;而有时在html中会用到js调动,他们的位置可能会发生改变;这样,你给他一个thead就代表它是头部,tbody就是代表内容;tfooter就是代表脚部。
举报