From 1cd06b2680f5d562d90802d93aab813ef6dcc253 Mon Sep 17 00:00:00 2001 From: Default User Date: Fri, 23 Jan 2026 17:00:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DiOS=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=9B=B4=E6=96=B0=E9=A1=B5=E9=9D=A2=E5=8F=AF?= =?UTF-8?q?=E6=8B=96=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods-update/goods-update.wxss | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pages/goods-update/goods-update.wxss b/pages/goods-update/goods-update.wxss index ffc1ef0..bff7c8f 100644 --- a/pages/goods-update/goods-update.wxss +++ b/pages/goods-update/goods-update.wxss @@ -22,11 +22,24 @@ page::-webkit-scrollbar { background-color: #f5f7fa; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; position: relative; + overflow: hidden; /* 禁用页面容器滚动,防止iOS整体拖动 */ + touch-action: none; /* 防止页面整体拖动 */ } -/* 商品详情内容区域 */ +/* 商品详情内容区域作为主要滚动区域 */ .goods-detail-content { + height: calc(100vh - 140px); /* 减去底部按钮和顶部区域的高度 */ + overflow-y: auto; + /* 优化iOS滚动行为,防止页面整体拖动 */ + -webkit-overflow-scrolling: touch; + scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; /* IE/Edge */ position: relative; + touch-action: pan-y; /* 只允许垂直滚动 */ + /* 添加以下属性防止iOS橡皮筋效果 */ + overflow-x: hidden; + backface-visibility: hidden; + perspective: 1000px; } /* 隐藏所有scroll-view组件的滚动条 */