首页 > 移动平台 > 详细

移动键盘 滚动input

时间:2019-01-08 18:41:37      阅读:189      评论:0      收藏:0      [点我收藏+]

window.addEventListener(‘resize‘, function () {
if(document.activeElement.tagName === ‘INPUT‘){
document.activeElement.scrollIntoView({behavior: "smooth"})
}
})

移动键盘 滚动input

原文:https://www.cnblogs.com/chengyunshen/p/10240458.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!