华为软键盘弹出窗口变小 底部内容顶上适配
获取初始窗口高度 :this.mobileHeight=document.documentElement.clientHeight
监听变化中的窗口高度:
let that = this window.onresize = function temp() { var mobileHeight=window.innerHeight+"px"; if(document.documentElement.clientHeight ==that.mobileHeight) { //初始高度等于变化中的高度 页面无变化 }else{ //这里做适配 } };

浙公网安备 33010602011771号