【发布时间】:2017-09-05 03:19:22
【问题描述】:
我想在打印期间在页面上显示页眉和页脚。所以我使用的代码是:
<table align="center">
<thead style="display: table-header-group;">
<tr>
<td>
Header
</td>
</tr>
</thead>
<tbody> Body data</tbody>
<tfoot style="display: table-footer-group; bottom:0;">
</tfoot>
</table>
标题和内容显示正确。页脚也显示在每页的末尾是正确的。但问题是当最后一页内容只有一行时,页脚显示在该行之后而不是页面底部。
【问题讨论】:
-
你能创建一个演示或小提琴吗?