Browse Source

修复iOS页面拖动问题:移除固定高度和overflow属性

pull/19/head
Default User 1 month ago
parent
commit
53ed6c9d07
  1. 15
      pages/goods-update/goods-update.wxss

15
pages/goods-update/goods-update.wxss

@ -21,27 +21,14 @@ page::-webkit-scrollbar {
min-height: 100vh; min-height: 100vh;
background-color: #f5f7fa; background-color: #f5f7fa;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
overflow: hidden; /* 禁用页面容器滚动 */
position: relative; position: relative;
} }
/* 商品详情内容区域作为主要滚动区域 */ /* 商品详情内容区域 */
.goods-detail-content { .goods-detail-content {
height: calc(100vh - 140px); /* 减去底部按钮和顶部区域的高度 */
overflow-y: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
position: relative; position: relative;
} }
/* 强制隐藏滚动条 */
.goods-detail-content::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
}
/* 隐藏所有scroll-view组件的滚动条 */ /* 隐藏所有scroll-view组件的滚动条 */
scroll-view { scroll-view {
scrollbar-width: none; /* Firefox */ scrollbar-width: none; /* Firefox */

Loading…
Cancel
Save