设置padding-top正值和margin-top负值比如固定的导航栏高度为100px,那么锚点处就设置padding-top:100px;margin-top:-100px;
posted on 2018-10-17 16:25 DFrain 阅读(1087) 评论(0) 收藏 举报