点击input框弹出输入法 ,底部footer内容就会被顶上去的问题

点击input框弹出输入法  ,底部footer内容就会被顶上去的问题

解决方案:

var oHeight = $(document).height(); //浏览器当前的高度
   
   $(window).resize(function(){
 
        if($(document).height() < oHeight){
         
        $("#footer").css("position","static");
    }else{
         
        $("#footer").css("position","absolute");
    }
        
   });

  

posted @ 2019-09-21 12:54  Fire_Dragon  阅读(550)  评论(0编辑  收藏  举报