如何在表格底部添加标题?

The*_*ght 3 html asp.net html-table caption

我有一个表格,其标题出现在表格顶部。

我需要另一个标题出现在表格底部。怎么可能呢?

<table>
    <caption>My Table - Start</caption>
    <tbody></tbody>
    <tfooter></tfooter>
    <caption>My Table - End</caption>
</table>
Run Code Online (Sandbox Code Playgroud)

Eli*_*eth 6

您应该将 <caption> 放在表格顶部、<table> 标记的正下方。然后你就可以使用CSS了:

标题 { 标题侧:底部;}

把它放在桌子下面。正如前人所写,每个表只有一个标题。如果您需要表格标题,请使用 <th> 或将标题放在表格外部并使用 CSS 来正确定位。