<a>标签的href属性
2016-11-07 14:39
316 查看
‘a’标签href属性
值 | 描述 |
---|---|
url | 超链接url可能的值: 绝对url — 如:http://baidu.com 相对url — 如:a.html 瞄url — 如:#top |
href=”#”
,不跳转页面,但是会刷新页面
如果不想跳转页面 ,个人收藏的几种解决方法:
<a href="####"></a> <a href="javascript:void(0)"></a> <a href="####"></a> <a href="javascript:void(0)"></a> <a href="javascript:void(null)"></a> <a href="#" onclick="return false"></a> <span style="cursor:hand"></span>(好像在FF中不能显示)
href=”javascript:void(0)”,不做任何操作,适用于用点击由js处理事件,如ajax请求等
相关文章推荐
- <a>标签跳转和执行js函数,href和onclick属性
- <a>标签的href和onclick属性
- <a>标签的href属性
- <a>标签href属性与onclick事件
- <a>标签的href和onclick属性【转】
- <a>标签的href和onclick属性
- <a>标签的href和onclick属性
- <a>标签的href和onclick属性
- <a>标签href属性和onclick()执行顺序及点击两次才跳转
- <a>标签的href和onclick属性
- <a>标签的href和onclick属性
- <a>标签中的onclick和href属性
- <a>标签的href和onclick属性
- <a>标签的href和onclick属性
- <a>标签href onclick属性区别,href属性的路径问题
- <a>标签的href和onclick属性
- <link>标签的rel属性详解
- HTML <a href >标签的target属性
- <meta>标签中http-equiv属性的属性值X-UA-Compatible详解
- HTML <a> 标签的 href 属性 注意其URL分为绝对 相对 锚