can a go at the bottom of a table?

前端 未结 5 941
一向
一向 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:20

    According to the specification, you may place the tfoot before, or after, the tbody element(s). See the following description from the previous link.

    Contexts in which this element can be used:

    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.

    2. 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.

    Regardless of where you place the markup, the footer information will be displayed at the bottom visually.

提交回复
热议问题