can a go at the bottom of a table?

前端 未结 5 937
一向
一向 2021-02-19 03:18

I\'d like to use a 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

5条回答
  •  情深已故
    2021-02-19 03:34

    As others have said, tfoot is defined before the tbody but rendered afterwards. This is by design and doesn't change the semantics (a table has a head, a foot and a body - the order of these doesn't matter)

    The reason it's done this way is so that the foot can be loaded and displayed on screen while the body is still downloading, so you can still read the summary information you have in the foot. It's virtually moot these days, but with a slow connection and a massive table, you might still see the benefits.

提交回复
热议问题