84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
$location.hash('feature'); $anchorScroll(); 请教各位大神,我用这种方式定义锚点为什么和我定位的id元素有偏差?
See if you have donefixabsolute positioningonbannerortopbar. If so, your jump anchor point will definitely not be able to correspond accurately
fix
on
or
SolutionJust set the following code to the container where each id element is located
padding-top:80px; margin-top:-80px
See if you have done
fix
absolute positioningon
banneror
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