可以a< tfoot>去桌子的底部? [英] can a <tfoot> go at the bottom of a table?

查看:137
本文介绍了可以a< tfoot>去桌子的底部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在表格中使用< 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.


  1. 作为表元素的子元素,在任何标题,colgroup和thead元素之后,以及任何tbody和tr元素之前,但前提是没有其他的tfoot元素是table元素的子元素。

  1. 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&lt; tfoot&gt;去桌子的底部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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