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");
}
}
相关文章
- 10-16防止手机端底部导航被搜索框顶起