防止手机端底部导航被搜索框顶起

var windheight =window.innerHeight;
var tabbar = $(".weui-tabbar"); //底部导航
window.onresize = function(){
var docheight = window.innerHeight;
if(docheight < windheight){
tabbar.css("position","static");
}else{
tabbar.css("position","absolute");
}
}

posted on 2018-08-14 11:30  Alex_guoyihao  阅读(231)  评论(0编辑  收藏  举报

导航