angular anchor issue - angular anchor issue
巴扎黑
巴扎黑 2017-05-27 17:44:29
0
1
775
  $location.hash('feature');
    $anchorScroll();
    请教各位大神,我用这种方式定义锚点为什么和我定位的id元素有偏差?
巴扎黑
巴扎黑

reply all(1)
洪涛

See if you have done fixabsolute positioning on banner or topbar
. If so, your jump anchor point will definitely not be able to correspond accurately

Solution
Just set the following code to the container where each id element is located

padding-top:80px;
margin-top:-80px
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template