摘要: $("input").focus(function () { var num = $(this).offset().top; $("html,body").animate({scrollTop: num}, 800);}); //关键代码 $("input").focus(function () { var num = $(this).offse... 阅读全文
posted @ 2017-02-28 17:09 sunniejs 阅读(789) 评论(0) 推荐(0) 编辑