We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
select
input
textarea
$('textarea').on('blur',function(){ setTimeout(function(){ // 滚动到顶部 window.scrollTo(0, 0); // 滚动到底部 // window.scrollTo(0, document.documentElement.clientHeight); },100) })
重点是:添加 blur 事件 window.scrollTo(0, 0)
blur
window.scrollTo(0, 0)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题场景
select
,input
,textarea
等输入框软键盘弹起的时候页面会上移,软键盘关闭页面不会下移,导致页面空缺了一部分解决方案
重点是:添加
blur
事件window.scrollTo(0, 0)
相关链接
The text was updated successfully, but these errors were encountered: