防止手机端底部导航被搜索框顶起
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 阅读(239) 评论(0) 收藏 举报
浙公网安备 33010602011771号