Page break for long table
问题 I have a long table which shows rows on several pages. When a page ends, the row is printed half on one page and half on the next page. How can I make sure that the rows is printed completely on the new page? 回答1: CSS property: page-break-inside: avoid; on HTML tr element does it. Tested with: wkhtmltopdf 0.12.3 provided for Linux (Ubuntu Trusty) 32-bit / 64-bit built on Ubuntu 14.04.2 as provided at: http://wkhtmltopdf.org/downloads.html#stable A quick and dirty test may look like: <tr style