<scroll-view class="page" enhanced scroll-y upper-threshold="300" bindscroll="bindscroll" refresher-enabled refresher-triggered="{{refresherFlag}}" bindrefresherrefresh="bindrefresherrefresh" style="height:{{windowHeight - TabbarHeight}}px;"></scroll-view>
windowHeight 这个是动态获取设备的高度,TabbarHeight这个为自定义tabbar的高度,下面是css
.page {
overflow: hidden;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 2;
flex: 1;
/* background-color: deeppink; */
}
只在预览模式和正式版小程序里面出现这个问题,真机调试没有出现这个问题
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)