处理Android键盘覆盖input和textarea框的问题

时间:2019-01-05 18:58:02   收藏:0   阅读:150
        $(window).resize(function(){
            $(‘input[type="text"],textarea‘).on(‘click‘, function () {
            var target = this;
            setTimeout(function(){
                    target.scrollIntoViewIfNeeded();
                    // console.log(‘scrollIntoViewIfNeeded‘);
                },400);
            });         
        });

  

原文:https://www.cnblogs.com/cx709452428/p/10225592.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!