收藏
回答

scroll-view真机调试时候苹果无法滚动?

//真机调试的时候安卓可以滚动,苹果无法滚动,个人感觉是苹果获取高度已经超过了内容的高度,这种要怎么解决

.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

})

});


回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容
问题标签