123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- .print-page {
- width: 100%;
- height: 100%;
- position: relative;
- box-sizing: border-box;
- padding: 1cm;
- }
-
- // A4 大小 210 * 279
- @width: 190mm; // 210 - 20
- @height: 277mm; // 279 - 20
-
- @minWidth: calc(@width / 8);
-
- .print-table {
- table-layout: fixed;
- width: @width;
- height: @height;
- margin: auto;
- font-size: 16px;
- overflow-x: hidden;
-
- col {
- width: @minWidth;
- }
-
- th {
- font-weight: 400;
- }
-
- thead {
- tr {
- border: none !important;
- }
- }
-
- @border: 1.5px solid #333;
-
- tbody {
- border: @border;
- }
-
- tr {
- & + tr {
- border-top: @border;
- }
- }
-
- td {
- padding: 0 .5em;
- overflow: hidden;
- text-overflow: ellipsis;
- div {
- min-width: @minWidth;
- min-height: 10mm;
- line-height: 10mm;
- }
-
- & + td {
- border-left: @border;
- }
- }
-
- .cell-lg {
- div {
- width: auto;
- min-height: 70mm;
- line-height: 1.6em;
- }
- }
-
- .title {
- font-size: 2em;
- }
-
- .sub-title {
- // font-size: 12px;
- }
-
- .bd-left {
- border-left: @border;
- }
- }
-
- @media screen {
- .print-btn {
- text-align: center;
- margin: 64px auto;
- }
-
- .print-table {
- padding: 5mm 5mm 5mm 10mm;
- }
- }
-
- @media print {
- .print-table {
- padding: 0;
- }
-
- .print-btn {
- display: none;
- }
- }
-
- @page {
- size: A4;
- margin: 0;
- }
|