去掉a标签的边框和下划线

去边框

非IE
Css代码 
a:focus {
    outline:none;
}


IE

Html代码 
1.<a href="#" hidefocus="true">链接</a> 


去下划线
a{
text-decoration:none;
}
或者把这个属性分别加到a标签下,
a:link{
text-decoration:none;
}
a:visited{
text-decoration:none;
}
a:hover{
text-decoration:none;
}
a:active{
text-decoration:none;
}
可以根据自己的需要来选择其中的一部分

猜你喜欢

转载自shengren-wang.iteye.com/blog/1625939