From aeed28a7d72d5844cf983dfdd6d1173a0639edb8 Mon Sep 17 00:00:00 2001 From: hezhengao <1747627779@qq.com> Date: Fri, 19 Apr 2024 10:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/abuwx/wxuser/project.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/abuwx/wxuser/project.vue b/src/views/abuwx/wxuser/project.vue index b597edc..8a06038 100644 --- a/src/views/abuwx/wxuser/project.vue +++ b/src/views/abuwx/wxuser/project.vue @@ -77,10 +77,10 @@
+
+
项目名称:{{ this.titles }}
-
项目名称:{{ this.titles }}
-
- +
@@ -313,18 +313,25 @@ export default { } @media print { + @page { + size: auto; /* 设置打印页面大小为自动 */ margin: 0; /* 设置打印页面的页边距为0,去除默认页眉和页脚 */ - } #printdata { display: flex; justify-content: center; /* 水平居中 */ align-items: center; /* 垂直居中 */ + width: 100vw; height: 100vh; /* 设置高度为视口高度,使内容居中显示 */ + // transform: scale(2); /* 设置二维码放大倍数,这里是放大2倍,可以根据需要调整 */ + } + + .printdata-item{ transform: scale(3); /* 设置二维码放大倍数,这里是放大2倍,可以根据需要调整 */ } + /* 如果需要额外样式,可以在这里添加 */ }