From e057c09b4e1d43b0758d2209b8f40cfd17c5727b Mon Sep 17 00:00:00 2001 From: Default User Date: Thu, 5 Feb 2026 14:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8CSS=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E9=98=B2=E6=AD=A2iOS=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/supply.html b/supply.html index 1fd9c86..71bec2b 100644 --- a/supply.html +++ b/supply.html @@ -5783,6 +5783,11 @@ // 隐藏body滚动条,避免双滚动条 document.body.style.overflow = 'hidden'; + // 添加固定定位,防止iOS页面滚动 + document.body.style.position = 'fixed'; + document.body.style.width = '100%'; + document.body.style.height = '100%'; + // 防止iOS上的页面拖动 preventiOSScrolling(); @@ -5971,6 +5976,11 @@ // 恢复body滚动条 document.body.style.overflow = 'auto'; + // 移除固定定位,恢复body样式 + document.body.style.position = ''; + document.body.style.width = ''; + document.body.style.height = ''; + // 恢复iOS页面滚动 restoreiOSScrolling(); @@ -8971,6 +8981,10 @@ restoreiOSScrolling(); // 恢复body滚动条 document.body.style.overflow = 'auto'; + // 移除固定定位,恢复body样式 + document.body.style.position = ''; + document.body.style.width = ''; + document.body.style.height = ''; } // 对于select-modal,使用移除active类来隐藏 else if (modal.classList.contains('select-modal')) {