HTML Dog
跳至导航

HTML 标签:tfoot

一个行组,由列摘要或表格页脚组成。

tfoot 元素是 table 元素的子元素。如果使用,每个 table 元素应该只有一个 tfoot,并且它应该只出现在 captioncolgroupthead 元素之后(如果使用了这些元素)。

可选属性

全局属性

示例


<table>
    <thead>
        <tr>
            <th>Header 1</th>
            <th>Header 2</th>
            <th>Header 3</th>
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td>Footer 1</td>
            <td>Footer 2</td>
            <td>Footer 3</td>
        </tr>
    </tfoot>
    <tbody>
        <tr>
            <td>Cell data 1</td>
            <td>Cell data 2</td>
            <td>Cell data 3</td>
        </tr>
        <tr>
            <td>Cell data 4</td>
            <td>Cell data 5</td>
            <td>Cell data 6</td>
        </tr>
        <tr>
            <td>Cell data 7</td>
            <td>Cell data 8</td>
            <td>Cell data 9</td>
        </tr>
    </tbody>
</table>