处理安卓和ios当页面原生键盘弹出,输入框不显示

       $('input').on('click', function () {
            var target = this;
            // 使用定时器是为了让输入框上滑时更加自然
            setTimeout(function(){
                target.scrollIntoView(true);
            },100);
            $('body,html').height(document.documentElement.clientHeight)
       });

 

posted @ 2019-01-22 13:32  =DLSS=webZT  阅读(353)  评论(0编辑  收藏  举报