我使用Django生成了一个表格,并通过WeasyPrint将其呈现为pdf。
这个表格可能会非常长(指行数),因此可能会在多页pdf结果中结束。我必须在每个页面的末尾包含一个静态页脚,因此我应用了css中的fixed规则。
我的问题是,这个页脚被非常长的表格重叠覆盖了。我该如何要求WeasyPrint(通过css,我想)在每个页脚之前断开表格,并继续在下一页上呈现表格?
<table>
<tr></tr> <!-- a lot of rows, potentially spreading on several A4 pages -->
</table>
<footer style="position: fixed"> <!-- footer contents will be repeated and overlapped on each page until </table> is not reached -->
</footer>
我尝试使用应用于表格标签的css规则作为padding-bottom,但没有成功。谢谢。