<a href="https://www.baidu.com/" target="_blank">百度一下</a>
target的几种参数:
- _self : 默认选项,在当前窗口打开
- _blank : 在新的窗口打开
- _parent : 在父窗口打开
- _top : 在最顶层的窗口打开
- iframe的name属性值 : 在iframe中打开链接
- #name : 跳转到id=name的元素上
发送邮件
<a href="mailto:406618060@qq.com? //收件人
cc=someoneelse@example.com //抄送 可省略
&bcc=andsomeoneelse@example.com //密件抄送 可省略
&subject=Summer%20Party //标题
&body=You%20are%20invited%20to%20a%20big%20summer%20party! //内容"
></a>
跳转的几种实例
回到顶部或者锚点
<a href="https://www.baidu.com#item1">跳转到百度上id=item1的元素上</a>
<a href="#item1">跳转到id=item1的元素上</a>
跳出框架
<a href="https://www.baidu.com/" target="_top">跳出框架</a>
css中的样式管理
a:link{未访问的链接}
a:visited{已访问的链接}
a:hover{鼠标划过链接}
a:active{已选中的链接}
a{
cursor:pointer; 鼠标变成小手
http://www.w3school.com.cn/cssref/pr_class_cursor.asp
text-decoration: none;隐藏下划线
underline:显示下划线 overline:显示为上划线 line-through:删除线
}