表中的html表是否有效? [英] Is a html table within a table valid?

查看:77
本文介绍了表中的html表是否有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在html中,在表内部有一个表是否有效?

 < table> 
< tr>
< td>
< table>
< tr>
< td>< / td>
< / tr>
< / table>
< / td>
< / tr>
< tr>< / tr>
< / table>


解决方案

是的,完全有效。
$ b

通过粘贴到W3C验证器中,唯一的错误是关于文档类型,头标签等等......没有提到表格中的嵌套表格(即使添加了所有正确的标签它错误)它建议使用 tbody



http://validator.w3.org/check


In html, is it valid to have a table inside of a table?

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr></tr>
</table> 

解决方案

Yes, perfectly valid.

By pasting what you have into the W3C validator, the only errors are regarding doctype, head tags, etc... nothing ever mentioned of nesting table within table (even after adding all the correct tags that it errored on) It suggests using a tbody

http://validator.w3.org/check

这篇关于表中的html表是否有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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