$('body,html').height(document.body.clientHeight);
进入页面的时候就把高度固定住,这样虚拟键盘打开页面高度不会变化,你的布局也不会乱。
测试有效。
当然还有许多其它办法。