uni.onKeyboardHeightChange(res => {
this.style.keyboardHeight = res.height //键盘高度
console.log("----index----键盘高度----"+res.height+"-设置主内容高度-"+this.style.contentViewHeight)
})
键盘弹出后切换中文输入,res.height就回调为0了,固定底部的输入textsrea,因为高度变高了,被推到底部被键盘挡住了
![2868073639qq](https://img-cdn-tc.dcloud.net.cn/account/identicon/62b05eacb129dcfe93fda16eec76a7bf.png)
2868073639qq
- 发布:2023-03-16 22:35
- 更新:2023-04-11 20:58
- 阅读:257
键盘弹出后切换中文输入,键盘高度的回调变为0了,导致输入窗口下滑到底部被遮挡,怎么解决
分类:uni-app
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20230316/c28332455fcf5cd5e1d426fc65b355d4.jpg)