【发布时间】:2016-10-12 20:59:15
【问题描述】:
当我在pdf文件中生成表格时,当tr包含长文本时,分页符,表格的下一个单元格被转移到下一页。我尝试使用样式:
table, tr, td, th, tbody, thead, tfoot {
page-break-inside: auto !important;
}
但它不起作用。如何在里面启用分页符?
【问题讨论】:
-
你想达到什么目的?强制休息还是避免休息?
-
@Finwe,当
tr有长文本时,我需要从tr禁用page-break-inside: avoid。强行中断。 -
当前 mPDF 版本不支持此功能。避免是唯一可能的值;
-
谢谢,非常糟糕((
-
你试过这样的事情吗? mpdf.github.io/troubleshooting/resizing.html