手机页面输入法把确定(footer)按钮顶上去的问题

来源:互联网 发布:linux内核移植 编辑:程序博客网 时间:2024/05/24 05:30
var oHeight = $(document).height(); //浏览器当前的高度$(window).resize(function(){     if($(document).height() < oHeight){     $("footer").css("position","static"); }else{     $("footer").css("position","absolute"); }});
1 0
原创粉丝点击