May I ask PHP to print a table in PDF? How can this problem be solved? Page code: HTMLcode & lt ;? Phpforeach ($ aas $ v ):? & Gt; & lt; table & gt; ...... & lt; table & gt; & lt ;? Phpendforeach ;? & Gt; printed on a piece of paper. I want to split a table by table. one table is a piece of paper. can PHP print a PDF and one table? How can this problem be solved?
Page code:
HTML code
It is printed on a piece of paper.
I want to split a table by table. one table is a piece of paper.
------ Solution --------------------
What does this have to do with php ??
------ Solution --------------------
Use a style to control the width and height of the TABLE.
------ Solution --------------------
I still don't understand what the landlord wants to express
------ Solution --------------------
The page-break-before attribute sets the page-breaking action before the element.
Although you can use always to force pagination, you cannot ensure that pagination is not inserted. the creator can only ask the user agent to avoid pagination as much as possible.
Applicable to non-floating block-level elements whose position value is relative or static.
Note: use as few paging attributes as possible, and avoid using paging attributes in tables, floating elements, and block elements with borders.