81 lines
1.3 KiB
CSS
81 lines
1.3 KiB
CSS
/* styles.css */
|
|
body {
|
|
font-family: "DejaVu Sans", sans-serif; /* TCPDF 支持的字体 */
|
|
font-size: 10pt;
|
|
color: #333;
|
|
margin: 20mm 15mm 20mm 15mm; /* 页边距 */
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
border-bottom: 2px solid #000;
|
|
padding-bottom: 5mm;
|
|
margin-bottom: 8mm;
|
|
}
|
|
|
|
.header h1 {
|
|
margin: 0;
|
|
font-size: 16pt;
|
|
color: #000;
|
|
}
|
|
|
|
.header p {
|
|
margin: 2mm 0;
|
|
}
|
|
|
|
.company-info {
|
|
font-size: 9pt;
|
|
text-align: right;
|
|
margin-bottom: 10mm;
|
|
}
|
|
|
|
.document-details {
|
|
margin-bottom: 10mm;
|
|
}
|
|
|
|
.document-details table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.document-details th, .document-details td {
|
|
border: 1px solid #999;
|
|
padding: 2mm;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.document-details th {
|
|
background-color: #f0f0f0;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
|
|
.items-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 10mm;
|
|
}
|
|
|
|
.items-table th, .items-table td {
|
|
border: 1px solid #999;
|
|
padding: 2mm;
|
|
text-align: left;
|
|
}
|
|
|
|
.items-table th {
|
|
background-color: #eaeaea;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.items-table tfoot td {
|
|
font-weight: bold;
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
.footer {
|
|
border-top: 1px solid #ccc;
|
|
padding-top: 5mm;
|
|
font-size: 9pt;
|
|
text-align: center;
|
|
} |