解决方法:
js:
$("input").blur(function () {
setTimeout(() => {
const scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
window.scrollTo(0, Math.max(scrollHeight - 1, 0));
}, 100);
});
js:
$("input").blur(function () {
setTimeout(() => {
const scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
window.scrollTo(0, Math.max(scrollHeight - 1, 0));
}, 100);
});
本文标题:微信内置网页 ios 弹出键盘后,点击事件位置错位
本文链接:https://www.haomeiwen.com/subject/rgyfrctx.html
网友评论