關于h5軟鍵盤擋住輸入框的問題,怎么解決?var bIsAndroid = navigator.userAgent.toLowerCase().match(/android/i) == "android"; if (bIsAndroid == true) {
$('input').on('focus', function() { var height = $(this).offset().top;
$('section').animate({ scrollTop : height
}, "slow");
});
}
現在寫成這樣,但是頁面下部分的仍然滾動不到。這是圖這是代碼結構滾共條在section overflow:auto
關于h5軟鍵盤擋住輸入框的問題,怎么解決?
皈依舞
2018-08-01 09:09:57