<tr>必须在 <tbody> 内 [英] Does a <tr> have to be inside a <tbody>

查看:34
本文介绍了<tr>必须在 <tbody> 内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

表格行 () 是否必须在表格主体 () 中,如果表格有表格主体,或者它可以存在于表体之外吗?

Does a table row (<tr>) have to be in a table body (<tbody>), if the table has a table body, or can it exist outside of the table body?

<table>
    <tr>
      <td colspan='2'>...</td>
    </tr>

    <tbody>
      <tr>
        <td>...</td>
        <td>...</td>
      </tr>
    </tbody>

    <tr>
      <td colspan='2'>...</td>
    </tr>

    <tbody>
      <tr>
        <td>...</td>
        <td>...</td>
      </tr>
    </tbody>

</table>

推荐答案

不行,可以在,<tbody><tfoot> 或者它不必在其中任何一个中.

No, the <tr> can be in the <thead>, <tbody>, <tfoot> or it doesn't have to be in any of them.

这篇关于&lt;tr&gt;必须在 &lt;tbody&gt; 内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆