我有一个表格,其中有一个标题出现在表格顶部。如何将一个标题添加到表格底部?
我需要另一个标题出现在表的底部。怎么可能?
<table>
<caption>My Table - Start</caption>
<tbody></tbody>
<tfooter></tfooter>
<caption>My Table - End</caption>
</table>
我有一个表格,其中有一个标题出现在表格顶部。如何将一个标题添加到表格底部?
我需要另一个标题出现在表的底部。怎么可能?
<table>
<caption>My Table - Start</caption>
<tbody></tbody>
<tfooter></tfooter>
<caption>My Table - End</caption>
</table>
您可以通过执行以下操作,并运用一些CSS
<table>
<caption class="cap">some caption text</caption>
<tr>
<td>cell 1</td><td>cell 2</td><td>cell3</td>
</tr>
<tr>
<td>cell 1</td><td>cell 2</td><td>cell3</td>
</tr>
<tr>
<td>cell 1</td><td>cell 2</td><td>cell3</td>
</tr>
<tr>
<td colspan="3" class="cap foot">
This is pretty much a footer caption.
</td>
</tr>
</table>
我相信你只能有每个表1所说明,它必须table标签后出现嘲弄一个。 您可以在表格后面添加一个div,并在其中放置标题。
您应该将<标题>置于表格顶部,正好位于<表格>标记的下方。然后你可以使用CSS:
caption-caption-side:bottom; }
把它弄到桌子底下。每个表格只有一个标题,前面的人写道。如果您需要表格标题,请使用<th>或在表格外放置标题并使用CSS将其正确放置。
这很有趣;谢谢:) - 你自己写了那个例子吗? –