标签:resize tag fun eve func size active put lin
window.addEventListener(‘resize‘, function () {
if(document.activeElement.tagName === ‘INPUT‘){
document.activeElement.scrollIntoView({behavior: "smooth"})
}
})
标签:resize tag fun eve func size active put lin
原文地址:https://www.cnblogs.com/chengyunshen/p/10240458.html