css 锚点上下偏移

制作一个暗锚

html


<a class="target-fix" name="name"></a> 

css


.target-fix {  
    position: relative;  
    top: -100px;   
    display: block;  
    height: 0;  
    overflow: hidden;  
}  

Table of Contents