美文网首页
当输入法键盘唤起,底部footer跟随着一起上去的bug

当输入法键盘唤起,底部footer跟随着一起上去的bug

作者: 393d4e0df76e | 来源:发表于2017-04-26 10:53 被阅读0次

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

    $(window).resize(function(){

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

    $("#footer").css("display","none");

    }else{

    $("#footer").css("display","block");

    }

    });

    相关文章

      网友评论

          本文标题:当输入法键盘唤起,底部footer跟随着一起上去的bug

          本文链接:https://www.haomeiwen.com/subject/sllizttx.html