调试商品详情页虚拟键盘弹出

This commit is contained in:
red-deng-deng 2022-01-24 20:20:27 +08:00
parent a43a4d0d78
commit fd39f90451
1 changed files with 3 additions and 2 deletions

View File

@ -333,8 +333,9 @@
let ele = document.querySelector('.ipt-acc'); let ele = document.querySelector('.ipt-acc');
setTimeout(function () { setTimeout(function () {
ele.scrollIntoView(false); ele.scrollIntoView(false);
document.body.scrollTop = document.body.scrollHeight; // console.log(123,ele.scrollHeight);
document.documentElement.scrollTop = document.documentElement.scrollHeight; document.body.scrollTop = ele.scrollHeight;
document.documentElement.scrollTop = ele.scrollHeight;
}, 400); }, 400);
}, },
//关闭,关闭弹框 //关闭,关闭弹框