锚点实现网页跳转
|
你可以用 锚点需要一个
然后你的浏览器会显示一个可以点击的文本,点击该文本就会跳转到
用锚点实现网页内部跳转 设置锚点的 <a href="#contacts-header">Contacts</a> <a href="#footer">Jump to Bottom</a>
<footer id="footer">Copyright Cat Photo App</footer>
|
|
|
<a href="地址">可以被点击的文字</a> <a>跳转文本</a> href 是目的地
<a href="#跳转到这里"></a> <h2 id="跳转到这里"></h2> href属性值为#名字 id要等于属性值的名字 |
|

浙公网安备 33010602011771号