我使用@media print {} 对打印进行一些更改。但是当我在谷歌浏览器中看到打印预览时,它在底部显示了一个额外的空白页。如何删除它?我为它尝试了一些代码,但它仍然无法正常工作。
div:last-child{
page-break-after: auto !important;
}
body,html{
height:auto !important;
min-height:200px;
}
最佳答案
尝试使用这个方法:
* {
font-size: 1em !important;
line-height: 1 !important;
}
关于css - 在谷歌浏览器上打印时删除空白页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38416591/