1***@qq.com
1***@qq.com
  • 发布:2025-05-19 14:25
  • 更新:2025-05-19 14:25
  • 阅读:56

页面有多个webview 超出页面高度 滚动不了

分类:uni-app

页面有多个webview
var currentWebview = proxy.$parent.$scope.$getAppWebview(); //获取当前页面的webview对象,此对象相当于html5plus里的plus.webview.currentWebview()
console.log(currentWebview)
setTimeout(function() {
var wv1 = currentWebview.children()[1];
wv1.setStyle({
top: 390,
height: 100
})
}, 1000);

用setStyle 设置top了 超出页面滚动不了

2025-05-19 14:25 负责人:无 分享
已邀请:

要回复问题请先登录注册