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

问题描述

我在论坛上阅读,< tfoot> 必须在< thead> 之后和< tbody> 之前。通过,< 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中的顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 07:57