安卓软键盘盖住输入框bug
修改之前
修改之后
if (!this.terminal.android) {
var oh =
document.documentElement.clientHeight || document.body.clientHeight; // 获取变化之前的可视区域的高度
window.addEventListener('resize', function() {
var rh =
document.documentElement.clientHeight || document.body.clientHeight; // 变化之后的高度
if (rh < oh) {
$('#app').css('height', '18rem');
$('html').scrollTop(600);
} else {
$('#app').css('height', '100vh');
$('html').scrollTop(0);
}
});
}
请用今天的努力,让明天没有遗憾。