fix: bug-1248 储位码打印预览多一页空白页

This commit is contained in:
曹鹏飞 2026-01-20 11:39:56 +08:00
parent 101cfcc193
commit c0faaf7475
1 changed files with 16 additions and 12 deletions

View File

@ -6,24 +6,28 @@
<title>二维码</title>
<style>
@page {
size: 40mm 60mm;
margin: 0;
/*size: A4 landscape;*/
/*size: landscape;*/
margin: 2px;
}
body{
margin: 0 auto;
padding: 0;
font-family: SimSun, serif;
font-size: 11pt;
}
.qrcode {
margin-top: 1mm;
width: 35mm;
height: 35mm;
width: 199px;
height: 199px;
}
.container {
width: 38mm;
height: 58mm;
font-size: 10pt;
font-family: SimSun, serif;
margin: 0;
padding: 0;
width: 200px;
height: 230px;
page-break-after: always;
border: #000 1px solid;
}
.container:last-child {
@ -37,7 +41,7 @@
<div>
<img class="qrcode" alt="" th:src="${item.qrCode}" src="../img/qrcode.png"/>
</div>
<div th:text="${item.no}">ICO2156115651</div>
<div th:text="${item.no}">外D小架前6A</div>
</div>
</div>
</body>