【发布时间】:2018-12-13 13:23:13
【问题描述】:
如何在 div 中显示的内容适合每一页而没有任何额外的空白页时打印得很好?
@page {
width: 1.97in;
height: 1.57in;
margin: 0;
padding: 0;
}
.label{
padding: 0;
border-collapse: collapse;
width: 1.97in;
height: 1.57in;
float: left;
display: block;
clear: both;
overflow: hidden;
border-top: 1px dotted;
page-break-after: always;
border-bottom: 1px dotted;
}
我想将内容打印为标签贴纸,但打印时总是显示额外的空白。如何配置?
【问题讨论】: