我们在浏览一个较长的页面时,往往会看一个类似“top”置顶控件,实际上这就是锚点的作用,当我们触发这个控件时便能回到页面顶部,即回到页面标记的锚点位置。
<a href="#here">come to here</a>
//<div id="head">
<a name="here">here</a>
我们在浏览一个较长的页面时,往往会看一个类似“top”置顶控件,实际上这就是锚点的作用,当我们触发这个控件时便能回到页面顶部,即回到页面标记的锚点位置。
<a href="#here">come to here</a>
//<div id="head">
<a name="here">here</a>