我應該如何避免重疊?并需要標題總是在每一頁的頂部... 任何幫助都將不勝感激。 下面請找到我寫的代碼
@media print {
body {
page-break-inside: avoid;
width:100%;
height:100%;
}
.header {
position: fixed;
top: 0;
border: 2px solid red;
}
/* .header {
position: fixed;
height:100px;
top: 0;
width:100%;
} */
div.break-page1 {
page-break-after: always;
}
@page {
size: landscape;
margin: 5mm 5mm 15mm 5mm;
}
.psi-table thead th{
background-color: #E5F4FA !important;
-webkit-print-color-adjust: exact;
page-break-inside: avoid;
}
.psi-table tbody tr{
page-break-inside: avoid;
}
.psi-table tbody tr td{
padding:4px !important;
}
.border-psi,
.psi-table{
border: 1px solid #a5a5a5;
border-radius: 5px;
}
.bg-charges{
background: #F2F3F5 0% 0% no-repeat padding-box;
}
.bank-details{
background: #F2F3F5 0% 0% no-repeat padding-box;
border-radius: 5px;
padding:8px;
}
}