thead,tfoot和tbody在HTML5中的顺序 [英] thead, tfoot and tbody order in HTML5

查看:75
本文介绍了thead,tfoot和tbody在HTML5中的顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在论坛上阅读 < tfoot> 元素,它必须位于< thead> 元素之后。相反,我看到一些人使用< thead>< tbody>< tfoot> 的顺序。那么什么是正确和最好的顺序?

解决方案

在HTML5之前< tfoot> 必须在< thead> 之后和< tbody> 之前。通过 HTML5 < tfoot> 可以在< tbody> 之前或之后。但是< table> 元素必须只有一个< tfoot> 子元素,并且它必须在< thead>


I was reading in a forum about <tfoot> element that it must come after <thead> element. In contrast I saw some people use the order <thead><tbody><tfoot>. So what is the correct and best to follow order?

解决方案

Before HTML5, <tfoot> had to come after <thead> and before <tbody>. With HTML5, <tfoot> can come before <tbody> or after it. But there must be only one <tfoot> child of a <table> element, and it must be after <thead>.

这篇关于thead,tfoot和tbody在HTML5中的顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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