| | |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | } |
| | | /* .print-header { |
| | | width: 100%; |
| | | text-align: center; |
| | | } */ |
| | | |
| | | .print { |
| | | position: absolute; |
| | | left: 47%; |
| | | top: 58%; |
| | | width: 7%; |
| | | height: 30px; |
| | | border: 0px; |
| | | border-radius: 6px; |
| | | color: #fff; |
| | | background-color: #1D5CE4; |
| | | letter-spacing: 4px; |
| | | } |
| | | |
| | | .user-info-table { |
| | | margin-top: 30px; |
| | | width: 60%; |
| | | width: 90%; |
| | | height: 60%; |
| | | border: 1px solid #000; |
| | | background-color: #fff; |
| | |
| | | |
| | | <body> |
| | | <div> |
| | | <div> |
| | | <button onclick="preview(1)">打印</button> |
| | | <div class="print-header"> |
| | | <button onclick="preview(1)" class="print">打印</button> |
| | | </div> |
| | | <!--startprint--> |
| | | <div id="table"> |