9/20
This commit is contained in:
@@ -59,14 +59,14 @@ export function printVueDiv(elementId: string, title: string = '打印') {
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100% !important;
|
||||
table-layout: fixed; /* 固定表格布局,防止列变形 */
|
||||
/*table-layout: fixed; !* 固定表格布局,防止列变形 *!*/
|
||||
}
|
||||
table td, table th {
|
||||
border: 1px solid #333;
|
||||
font-size: 9px; /* 表格字体最小化 */
|
||||
text-align: center;
|
||||
white-space: nowrap; /* ✅ 禁止文字自动换行(核心) */
|
||||
overflow: hidden;
|
||||
/*white-space: nowrap; !* ✅ 禁止文字自动换行(核心) *!*/
|
||||
/*overflow: hidden;*/
|
||||
}
|
||||
/* 适配合并列 */
|
||||
td[colspan], th[colspan] {
|
||||
@@ -85,7 +85,7 @@ export function printVueDiv(elementId: string, title: string = '打印') {
|
||||
line-height: 14px;
|
||||
color: rgba(48, 49, 51, 1);
|
||||
font-size: 20px;
|
||||
margin-bottom: 50px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
p {
|
||||
line-height: 14px;
|
||||
@@ -99,29 +99,33 @@ export function printVueDiv(elementId: string, title: string = '打印') {
|
||||
border-collapse: collapse;
|
||||
color: rgba(48, 49, 51, 1);
|
||||
}
|
||||
tr {
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
td {
|
||||
border: 1px solid #dddddd;
|
||||
height: 50px;
|
||||
line-height: 45px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
text-align: center;
|
||||
font-weight: 450;
|
||||
}
|
||||
tr {
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
td {
|
||||
border: 1px solid #dddddd;
|
||||
height: 50px;
|
||||
line-height: normal;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
font-weight: 450;
|
||||
}
|
||||
|
||||
.footertr td {
|
||||
height: 90px;
|
||||
}
|
||||
.footertr td {
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.foorter {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
width: 85%;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
gap: 30px;
|
||||
margin-top: 30px;
|
||||
margin: 20px auto 0;
|
||||
}
|
||||
.formark {
|
||||
font-size: smaller;
|
||||
margin-top: 10px;
|
||||
}
|
||||
</style>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user