fixed定位按钮在底部,键盘弹起,按钮被顶上去

解决fixed定位按钮在底部,键盘弹起,底部按钮被顶上去

var h=$(window).height(); $(window).resize(function() { if($(window).height()<h){ $('.footer').hide(); } if($(window).height()>=h){ $('.footer').show(); } });

原文地址:https://www.cnblogs.com/pangwl/p/8833050.html