简体   繁体   中英

dompdf table width issue on page break

I have two div's each of the same width, the right div has more data than the left div. Right div's data table changes its width on a page break. After the page break, the width of the table increases. I need a solution quickly, can anyone help?

I have used style attributes page-break-after and page-break-before and page break-inside but nothing is working.

在此处输入图片说明

Is it right that you build your HTML like a table column by column?

Maybe it would be better to render each row in its own div. So the break would only before or after a narrow item and not within your tall main wrapper.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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