安卓 软键盘弹出 导致 input输入框变形问题
2018-05-24 本文已影响0人
明月888
<script>
var HEIGHT = $('body').height();
$(window).resize(function() {
$('body').height(HEIGHT);
});
</script>
<script>
var oHeight = $(document).height(); //浏览器当前的高度
$(window).resize(function(){
if($(document).height() < oHeight){
$("#footer").css("position","static");
}else{
$("#footer").css("position","absolute");
}
});
<script>