脚本宝典收集整理的这篇文章主要介绍了php – dompdf在文档末尾插入空白页面,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
<!DOCTYPE html> <html> <head> <Meta http-equiv="content-type" content="text/html; charset=UTF-8"> <tITle>PDF</title> <style type="text/css"> @page{ margin: 0;} .page{ width: 612px; height: 792px; overflow: hidden; font-family: Arial,Helvetica; position: relative; color: #545554; page-break-after: always; } </style> </head> <body> <div class="page" style="background-image: url(page1.jpg);"> ... </div> <div class="page" style="background-image: url(page2.jpg);"></div> <div class="page" style="background-image: url(page3.jpg); color: white;"> ... </div> </body> </html>
前三页看起来很神奇,但最后有一个空白页面.我读过dompdf对于嵌套和合规等方面很挑剔,但html非常干净并且检查出来.
以上是脚本宝典为你收集整理的php – dompdf在文档末尾插入空白页面全部内容,希望文章能够帮你解决php – dompdf在文档末尾插入空白页面所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。