浏览代码

禁止打印

jwyu 2 年之前
父节点
当前提交
cfc5542689
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/style/global.scss

+ 7 - 0
src/style/global.scss

@@ -9,6 +9,13 @@ body,
   // min-width: 1024px;
   // min-width: 1024px;
 }
 }
 
 
+// 禁止页面打印
+@media print{
+  body{
+    display: none;
+  }
+}
+
 div {
 div {
   box-sizing: border-box;
   box-sizing: border-box;
 }
 }