| | |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .excelPrint { |
| | | width: 100%; |
| | | text-align: center; |
| | | margin-top: 50px; |
| | | } |
| | | |
| | | .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: 90%; |
| | |
| | | |
| | | <body> |
| | | <div> |
| | | <div> |
| | | <button onclick="preview(1)" class="print">打印</button> |
| | | </div> |
| | | |
| | | <!--startprint--> |
| | | <div id="table"> |
| | | <!-- <span class="title">准考证信息</span> |
| | | <table class="user-info-table" border="1px" align="center" cellspacing="0" cellpadding="10"> |
| | | </table> |
| | | </div> --> |
| | | </table> --> |
| | | </div> |
| | | <!--endprint--> |
| | | |
| | | <div class="excelPrint"> |
| | | <button onclick="preview(1)" class="print">打印</button> |
| | | </div> |
| | | </div> |
| | | <script> |
| | | var getData = function(name) { |
| | |
| | | <td colspan="6">${data.num}人</td> |
| | | </tr> |
| | | |
| | | </table> |
| | | </div>` |
| | | </table>` |
| | | |
| | | var dom = $('#table'); |
| | | dom.empty(); |