Browse Source

首页修改

zhengjinyi 4 năm trước cách đây
mục cha
commit
a64a5ecb8e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/main/resources/static/js/index.js

+ 2 - 1
src/main/resources/static/js/index.js

@@ -284,7 +284,8 @@ var homeData = new Vue({
         setTimeout(function(){
             $('#sideNav').on("click", 'a[data-id]',function () {
                 var id = $(this).attr('data-id');
-                var floorScroll = $('.section_page_title [data-id='+id+']').offset().top;
+                var floorScroll = $('.section_page_title [data-id='+id+']').offset().top-200;
+                console.log(floorScroll);
                 $('html,body').animate({scrollTop: floorScroll},600);
             });
         },2000);