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

        $(window).resize(function(){
            $('input[type="text"],textarea').on('click', function () {
            var target = this;
            setTimeout(function(){
                    target.scrollIntoViewIfNeeded();
                    // console.log('scrollIntoViewIfNeeded');
                },400);
            });         
        });

  

posted on 2019-01-05 18:14  Mike17  阅读(571)  评论(0编辑  收藏  举报

导航

搜狗