专注织梦dedecms仿站模板修改二次开发HTML5响应式模板制作!
html5响应式
点击返回顶部javascript代码,针对内容比较长的网页,点击按钮自动返回网站页面顶部js代码。
<div class="totop">返回顶部</div>
<script> $(function() { // 返回顶部 $(".totop").click(function() { $("html,body").animate({ 'scrollTop': '0px' }, 300) }); }); </script>