时间:2021-07-01 10:21:17 帮助过:27人阅读
参考:
offsetting an html anchor to adjust for fixed header
JQuery Position:Fixed 'NAVBAR' by scrolling the page
给锚点加上个下面的样式,纯css实现。
a.anchor{ display: block; position: relative; top: -92px; visibility: hidden;}
存贴备用, 实际效果地址
非常感谢您的热情回复!!!
参考:
offsetting an html anchor to adjust for fixed header
JQuery Position:Fixed 'NAVBAR' by scrolling the page
给锚点加上个下面的样式,纯css实现。
a.anchor{ display: block; position: relative; top: -92px; visibility: hidden;}