Browse Source

二维码扫码界面调整

qymljy 1 week ago
parent
commit
e517a82e73
1 changed files with 7 additions and 1 deletions
  1. 7 1
      public/codeToFile.html

+ 7 - 1
public/codeToFile.html

@@ -2,10 +2,16 @@
 <html lang="en">
     <head>
         <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
         <title>商品资料页</title>
         <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
         <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
         <style>
+            body {
+                margin: 0; /* 移除默认的边距 */
+                padding: 0; /* 移除默认的填充 */
+                background-color: #003399;
+            }
             .logo-margin{
                 margin: -60pt 0 0 30pt;
                 position: absolute;
@@ -95,7 +101,7 @@
             }
         </style>
     </head>
-    <body style="background-color: #003399;margin: 0;padding: 0">
+    <body>
         <div class="img-div" id="backgroundDiv">
             <img src="./img/logo.png" width="164pt" height="164pt" class="logo-margin">
         </div>