您的位置:首页 > Web前端 > CSS

<a>标签用css去掉下划线,并且点击后不变色

2016-12-18 09:35 330 查看
原文地址:http://blog.csdn.net/zxj19951029/article/details/46558973

其实很简单,只需要在<head></head>里面加上如下样式就可以了

[css] view
plain copy

<style type="text/css">   

<!--   

a:link {   

font-size: 12px;   

color: #000000;   

text-decoration: none;   

}   

a:visited {   

font-size: 12px;   

color: #000000;   

text-decoration: none;   

}   

a:hover {   

font-size: 12px;   

color: #999999;   

text-decoration: underline;   

}   

-->   

</style>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: