我尝试在Pechkin (wkhtmltopdf的包装器)生成的每个页面的顶部包含一个表的标题(thead),但它似乎根本不起作用。这个特性是否可用,或者我是否遗漏了什么?
我尝试在页面CSS中包含以下内容:
table { page-break-after: auto; }
tr { page-break-inside: avoid; page-break-after: auto; }
td { page-break-inside: avoid; page-break-after: auto; }
thead { display: table-header-group; }
tfoot { display: table-footer-group; }发布于 2015-04-24 07:18:26
恐怕答案是这是不可能的。你唯一能做的就是把表头放在PDF头里。
https://stackoverflow.com/questions/29491900
复制相似问题