软键盘弹出底部被顶上去

var oHeight = $(document).height(); //浏览器当前的高度

$(window).resize(function(){

  if($(document).height() < oHeight){

    $("#footer").css("position","static");
  }else{

    $("#footer").css("position","absolute");
  }
});

var oHeight = $(document).height(); //屏幕当前的高度
$(window).resize(function(){

  if($(document).height() < oHeight){

    $("#ibo-window-bottom").css("display","none");

  }else{

    $("#ibo-window-bottom").css("display","block");

  }

});

posted @ 2018-09-29 16:48  Webwhl  阅读(392)  评论(0编辑  收藏  举报