<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.

查看全文
登录 关闭
扫码关注1秒登录
新用户极速验证 | 老用户无需验证