xy 2 years ago
parent e3148f41c9
commit c41757fdcb

@ -27,7 +27,7 @@
</form>
</div>
<!--start print-->
<div style="position: relative;padding-bottom: 100px;">
<div style="position: relative;padding-bottom: 20px;">
<table class="table table-bordered mb-0 table-datatable">
<thead>
<tr>
@ -79,7 +79,7 @@
</table>
<img src="/images/yz.png" alt=""
style="filter: saturate(1);position: absolute;right: 20px; bottom: 100px; width: 154px;">
style="filter: saturate(1);position: absolute;right: 20px; bottom: 20px; width: 154px;">
<div
style="text-align: right;line-height: 2;margin-top: 20px;font-weight: 600;position: relative;z-index: 3;">
<div>
@ -111,6 +111,7 @@
var eprnstr = "<!--end print-->"; //设置打印结束区域
var prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18);
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
console.log(prnhtml)
window.document.body.innerHTML = prnhtml;
window.print();
window.document.body.innerHTML = bdhtml;

Loading…
Cancel
Save