移动端页面,点击input输入框时,软键盘会占据页面高度。
$(document).ready(function(){ var hgt=$(window).height(); $('body').height(hgt+'px') })
强制设定body高度为窗口高度即可