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