scrollTop返回顶部 <div class="top"></div> <script> $('.top').click(function () { $('html,body').animate({ scrollTop: 0 }, 1000) }) </script>