手机软键盘弹出时影响布局的解决方法 解决办法: $(document).ready(function () { $('body').height($('body')[0].clientHeight); }); 页面加载完后,js给body一个定高。