Home >Web Front-end >HTML Tutorial >a href="#"与a href=""的区别是什么_html/css_WEB-ITnose

a href="#"与a href=""的区别是什么_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:33:281261browse

前提是 :有滚动条。

 

 

1一个 #
当点击链接时,页面会跳到网页头部
三个 #
页面就不会跳到头部.显示当前的位置。

 

 

一个# 相当于锚点为最上端

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn