From 0b55a5fbdc0fe54442d535b3be26470a784b89ca Mon Sep 17 00:00:00 2001
From: web <candymxq888@outlook.com>
Date: 星期一, 14 四月 2025 14:12:21 +0800
Subject: [PATCH] fix:修改分辨率适配

---
 index.html |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/index.html b/index.html
index 8fb942e..5ebb133 100644
--- a/index.html
+++ b/index.html
@@ -7,8 +7,9 @@
   <meta name="renderer" content="webkit">
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link rel="icon" href="/favicon.ico">
-  <title>金川水电站生态流量监测系统</title>
+  <title>南京康尼地铁泵站监测服务系统</title>
   <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
+    <script type="text/javascript" src="/jessibuca.js"></script>
 
   <style>
     html,
@@ -213,4 +214,19 @@
   <script type="module" src="/src/main.js"></script>
 </body>
 
+<script>
+    // 屏幕适配
+    const t = window.devicePixelRatio   // 获取下载的缩放 125% -> 1.25    150% -> 1.5
+    // var heigth_screen = window.screen.height;    // 获取整个屏幕的分辨率
+    const width_screen = window.screen.width;
+    let zoom = 1
+    if (t !== 1) {
+        zoom = (1 / t) * zoom;   // 就去修改页面的缩放比例
+    }
+    if (width_screen < 1366) {
+        zoom = (width_screen / 1366) * zoom;   // 就去修改页面的缩放比例
+    }
+    document.body.style.zoom = zoom;   // 就去修改页面的缩放比例
+</script>
+
 </html>
\ No newline at end of file

--
Gitblit v1.9.3