问题描述
我想在表格中使用< tfoot>
标记语义正确,但它会一直显示在我表格的顶部。有没有办法让它显示在底部?
I'd like to use a <tfoot>
tag in a table to be semantically correct, but it keeps showing up at the the top of my table. Is there a way to tell it to display at the bottom?
推荐答案
根据,您可以将 tfoot
之前或之后的 tbody
元素。
According to the specification, you may place the tfoot
before, or after, the tbody
element(s). See the following description from the previous link.
-
作为表元素的子元素,在任何标题,colgroup和thead元素之后,以及任何tbody和tr元素之前,但前提是没有其他的tfoot元素是table元素的子元素。
As a child of a table element, after any caption, colgroup, and thead elements and before any tbody and tr elements, but only if there are no other tfoot elements that are children of the table element.
作为表元素的子元素,在任何标题,colgroup,thead,tbody和tr元素后,但只有没有其他tfoot元素
As a child of a table element, after any caption, colgroup, thead, tbody, and tr elements, but only if there are no other tfoot elements that are children of the table element.
$ b
无论您放置标记的位置,页脚信息都将显示在底部。
Regardless of where you place the markup, the footer information will be displayed at the bottom visually.
这篇关于可以a< tfoot>去桌子的底部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!