wkhtmltopdf 转pdf时元素被页面切割开

1.

<style>
* {
page-break-inside: avoid;
page-break-after: avoid;
page-break-before: avoid;
}
</style>
 
2.所有的 display: inline-block;
改为 display: block;

猜你喜欢

转载自www.cnblogs.com/studyforever/p/9960264.html