vue-print-nb打印多出空白页问题
时间:2021-09-06 23:23:57
收藏:0
阅读:26
在需要打印的vue页面里,写入以下样式:
<style media="print">
@page {
size: auto;
margin: 3mm;
}
html {
background-color: #ffffff;
height: auto;
margin: 0px;
}
body {
border: solid 1px #ffffff;
margin: 10mm 15mm 10mm 15mm;
}
</style>
原文:https://www.cnblogs.com/zhaoxxnbsp/p/15235116.html
评论(0)