<div class="bottom" v-show="hidshow">
底部内容
</div>
return {
docmHeight: document.documentElement.clientHeight,
showHeight: document.documentElement.clientHeight,
hidshow:true,
}
mounted:function(){
window.onresize = ()=>{
return(()=>{
this.showHeight = document.body.clientHeight;
})()
}
},
watch: {
showHeight:function() {
if(this.docmHeight > this.showHeight){
this.hidshow=false
}else{
this.hidshow=true
}
}
},
移动端点输入框底部元素顶起解决方法
最新推荐文章于 2023-08-07 11:51:38 发布