当前位置:网站首页>Record the problems encountered in using v-print
Record the problems encountered in using v-print
2022-04-23 12:53:00 【ZMJ_ QQ】
Reference documents
vue html Page printing function vue-print-nb - Xiaoxiang Yuxi - Blog Garden
1、 When clicking print, the console reports an error , It's not settled yet

2、 Remove header And footers , Uncheck header and footer... In more settings

3、 Solve the problem of content next to the edge and blank pages when printing
<style media="qualityPrint">
/* media="qualityPrint" qualityPrint It needs to be printed div Of id*/
/* Make the printed content not next to the border */
@page {
size: auto; /* auto is the initial value */
margin: 15mm; /* this affects the margin in the printer settings */
}
/* body{height:auto;} Solve the problem of blank pages */
body {
height: auto;
}
</style>

版权声明
本文为[ZMJ_ QQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230616457332.html
边栏推荐
猜你喜欢

A graphic designer's fantasy world | ones characters

Introduction to kubernetes

风尚云网学习-h5的input:type属性的image属性

STM32工程移植:不同型号芯片工程之间的移植:ZE到C8

What are the forms of attack and tampering on the home page of the website

If you were a golang interviewer, what questions would you ask?

Dialogue with Bruce, author of PostgreSQL: "changing careers" is to better move forward

SSM framework series - annotation development day2-2

Zigbee之CC2530最小系统及寄存器配置(1)

Calculate the past date and days online, and calculate the number of live days
随机推荐
[unity note] basic lighting in l4unity
If you were a golang interviewer, what questions would you ask?
Markdown grammar learning
BUUCTF WEB [BJDCTF2020]The mystery of ip
31. 下一个排列
How do traditional enterprises cope with digital transformation? These books give you the answer
BUUCTF WEB [BJDCTF2020]ZJCTF,不过如此
SSM框架系列——数据源配置day2-1
教你快速开发一个 狼人杀微信小程序(附源码)
Source code analysis of synchronousqueue
21 days learning mongodb notes
标签与路径
Pre competition practice of TIANTI competition
梳理网络IP代理的几大用途
Introduction to metalama 4 Use fabric to manipulate items or namespaces
Kubernetes 入门教程
产品开发都应该知道的8个网站,增强工作体验
SSL证书退款说明
Realize several "Postures" in which a box is horizontally and vertically centered in the parent box
基于卷积神经网络的遥感影像分类识别系统