XHTML thead,tfoot和tbody重要性

X HTML对于使用< thead>< tfoot>有“意见”和< tbody>?

有没有应该使用的情况?

谢谢.

解决方法

The thead,tbody,and tfoot elements
in HTML are used to group table rows
into logical sections based on their
content. There are two main reasons
you’d want to do this:

  • To allow the body to be scrolled independently of the header and/or
    footer
  • To make it easier to apply different style rules to the
    different sections of the table.

如这里所述What is benefit of <thead>

如果您正在使用表进行布局,那么不要使用这些.如果您正在显示表格数据,然后使用它.

如果你没有任何东西放在tfoot,那么不要添加.

你也会在这里找到一些很好的答案What is benefit of <thead>

相关文章

vue阻止冒泡事件 阻止点击事件的执行 &lt;div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些