最简单的方法是什么......
和
执行此操作的最基本方法可能是通过具有唯一span
的{{1}}:
id
<a href=#LINK2><span id="LINK1>This is LINK1 referring to LINK2</span><a/>
然而,是否有更快,更少劳动密集和更优雅的解决方案(参见正在建设的文件,动态文件或大文件)?
答案 0 :(得分:1)
你可以使用
<a href="#link2" id="link1">This is LINK1 referring to LINK2.<a/>
<a href="#link1" id="link2">This is LINK2, which refers back to LINK1.</a>
.space {
height: 100000px;
display: block;
}
&#13;
<a href="#link2" id="link1">This is LINK1 referring to LINK2.<a/>
<span class="space"></span>
<a href="#link1" id="link2">This is LINK2, which refers back to LINK1.</a>
&#13;