使用CSS3解决因“固定定位”造成页面内锚点跳转内容被遮盖的问题
h1[id]:before, h2[id]:before, h3[id]:before, h4[id]:before, h5[id]:before, h6[id]:before {
content: "";
display: block;
margin-top: -60px !important;
height: 60px;
pointer-events: none;
}
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}