更改打印字体

This commit is contained in:
郑庆 2025-12-20 20:01:46 +08:00
parent 53c7099546
commit 885922cde5
2 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ const onPrint = () => {
@page { size: 241mm 140mm; margin: 5mm; } @page { size: 241mm 140mm; margin: 5mm; }
body { body {
font-family: Arial, "Microsoft YaHei", sans-serif; font-family: Arial, sans-serif;
color:#000; color:#000;
margin: 5px; margin: 5px;
font-size: 12px; font-size: 12px;
@ -240,13 +240,13 @@ const onPrint = () => {
} }
.sheet { width:100%; border-collapse:collapse; font-size:12px; table-layout: fixed; } .sheet { width:100%; border-collapse:collapse; font-size:12px; table-layout: fixed; }
.sheet th, .sheet td { border:1px solid #333; padding:4px 0px; text-align:center; line-height:1; vertical-align: middle; } .sheet th, .sheet td { border:1.5pt solid #333; padding:4px 0px; text-align:center; line-height:1; vertical-align: middle; }
.sheet thead th { background:#f5f7fa; font-weight:600; } .sheet thead th { background:#f5f7fa; font-weight:600; }
.sheet .text-left { text-align:left; padding-left:6px; } .sheet .text-left { text-align:left; padding-left:6px; }
.sheet .spec { word-break: break-word; white-space: normal; } .sheet .spec { word-break: break-word; white-space: normal; }
.sheet .num { text-align:right; padding-right:6px; } .sheet .num { text-align:right; padding-right:6px; }
.sheet tfoot .sum-label, .sheet tfoot .sum-value { font-weight:700; } .sheet tfoot .sum-label, .sheet tfoot .sum-value { font-weight:700; }
.sheet tfoot .sum-row td { border-top: 2px solid #000; } .sheet tfoot .sum-row td { border-top: none; }
.sign-row { display:flex; justify-content:flex-start; margin-top:12px; font-size:12px;gap:30px } .sign-row { display:flex; justify-content:flex-start; margin-top:12px; font-size:12px;gap:30px }
.sign-item { display: flex; align-items: center; } .sign-item { display: flex; align-items: center; }

View File

@ -182,7 +182,7 @@ const onPrint = () => {
@page { size: 241mm 140mm; margin: 5mm; } @page { size: 241mm 140mm; margin: 5mm; }
body { body {
font-family: Arial, "Microsoft YaHei", sans-serif; font-family: Arial, sans-serif;
color:#000; color:#000;
margin: 5px; margin: 5px;
font-size: 12px; font-size: 12px;