//真机调试的时候安卓可以滚动,苹果无法滚动,个人感觉是苹果获取高度已经超过了内容的高度,这种要怎么解决
.wxml
<scroll-view class="topheight" style="height:{{scrollHeight}}px;overflow:auto" scroll-y='true' bindscrolltoupper="scrolltoupper" bindscrolltolower="scrolltolower">
内容
</scroll-view>
<view class="bottom-down">
//底部导航栏
</view>
.js
var that = this;
let Height = wx.getSystemInfoSync().windowHeight;
let Width = wx.getSystemInfoSync().windowWidth;
const query = wx.createSelectorQuery()
query.select('.bottom-down').boundingClientRect();
query.exec((res) => {
that.setData({
scrollHeight: Height - res[0].height - 1
})
});
是你内容高度不足以滚动吧
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
屏幕高度超过内容高度,那还有什么好滚动的……