在谷歌浏览器上打印时删除空白页面 [英] Remove blank page when printing on google chrome
本文介绍了在谷歌浏览器上打印时删除空白页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用@media print {}对打印进行了一些更改。但是当我在谷歌浏览器中看到打印预览时,它会在底部显示一个额外的空白页面。如何删除它?我尝试了一些代码,但它仍然无法正常工作。
I use @media print {} to make some changes on print. But when I see the print preview in Google chrome it shows an extra blank page on the bottom. How to remove it ? I try some code for it but it still not working.
div:last-child{
page-break-after: auto !important;
}
body,html{
height:auto !important;
min-height:200px;
}
推荐答案
尝试使用此方法: / p>
Try use this method:
* {
font-size: 1em !important;
line-height: 1 !important;
}
这篇关于在谷歌浏览器上打印时删除空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文