开发者

Set tfoot position

开发者 https://www.devze.com 2023-03-09 19:03 出处:网络
Is it possible to style the 开发者_开发百科tfoot section of a table so it shows between the thead and tbody?

Is it possible to style the 开发者_开发百科tfoot section of a table so it shows between the thead and tbody?

I would like to get a table to look like this:

Set tfoot position


Per my comment, you probably don't want to be making a table footer appear as anything other than a table footer.

But assuming you have the properly-ordered markup, this should work in whatever browser supports it:

thead, tfoot {
    display: table-header-group;
}

jsFiddle preview


Try this

Fiddle

0

精彩评论

暂无评论...
验证码 换一张
取 消