解决软键盘弹起时 底部footer弹起
2019-05-23 本文已影响0人
Do_Du
html 底部组件
<Footer v-show="showBtn"></Footer>
js 字段
clientHeight:document.documentElement.clientHeight,
showBtn: true,
js方法
window.onresize= ()=>{
if(this.clientHeight>document.documentElement.clientHeight) {
this.showBtn =false
}else{
this.showBtn = true
}
}