简体   繁体   English

表没有继续到第二页。

[英]Table did not continue to second page.. DOMPDF

I'm just a beginner in using DOMPDF w/ php... I'm having problems with page break in tables., table did not continue to second page.. 我只是使用带有php的DOMPDF的初学者...我在表的分页时遇到问题。表没有继续到第二页。

I'm running Win7, PHP Version 5.3.8, DOMPDF_0-6-0_beta3 我正在运行Win7,PHP版本5.3.8,DOMPDF_0-6-0_beta3
I've already added page-break-after:always; 我已经添加了page-break-after:always; in table styles. 在表格样式。

通过删除表单方法并确保表不在另一个表中来解决此问题。

您可以尝试table-layout:fixed

I had the same problem. 我有同样的问题。 I solved it by taking the Table out of the "Header" section and DOMPDF sorted the rest out. 我通过将表从“标题”部分中删除来解决了该问题,DOMPDF对其余部分进行了排序。 Header sections don't wrap like the body of an HTML view does. 标头部分的包装方式不像HTML视图的正文那样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM