點擊input框彈出輸入法 ,底部footer內容就會被頂上去的問題css
解決方案:瀏覽器
var oHeight = $(document).height(); //瀏覽器當前的高度 $(window).resize(function(){ if($(document).height() < oHeight){ $("#footer").css("position","static"); }else{ $("#footer").css("position","absolute"); } });