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

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

问题描述

表格行(< 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>


推荐答案

不,< tr> 可以在< thead> 中,< tbody> code>< tfoot> ,或者它们不一定都在其中。

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

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

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