微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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>

原文地址:https://www.jb51.cc/html/224998.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐