为了账号安全,请及时绑定邮箱和手机立即绑定

<thead><tbody><tfooter>这三个具体是干啥的

具体是干啥的

正在回答

2 回答

<thead>代表头部

<tbody>代表单元格内容

<tfooter>代表脚部


0 回复 有任何疑惑可以回复我~

最上面的底部应该写tfooter,而不是thead

2 回复 有任何疑惑可以回复我~
<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就是代表脚部。


2 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

<thead><tbody><tfooter>这三个具体是干啥的

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信