jim*_*415 4 pdf-generation wkhtmltopdf
我正在使用NReco PDFGenerator从HTML字符串创建PDF文档.当表在分页符上拆分时,表头与表中的下一行重叠(参见下图).
有想法该怎么解决这个吗?
jim*_*415 15
我发现通过添加以下css来解决这个问题:
thead {display: table-header-group;}
tfoot {display: table-row-group;}
tr {page-break-inside: avoid;}
Run Code Online (Sandbox Code Playgroud)