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组件的滚动条 */