码迷,mamicode.com
首页 > Web开发 > 详细

改变HTML中超链接的显示样式

时间:2014-08-27 10:59:27      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:html   css   超链接   


更详细的内容请参考:http://www.w3school.com.cn/tags/tag_a.asp

HTML中的代码如下:

<a class="news_title" target="_blank"></a>

可以通过以下方式来改变其默认的显示样式:

.news_title {
        font: normal 18px/28px "Microsoft YaHei";
        font-size: 15px;
        font-weight: bold;
}


/*改变超链接的默认状态*/
a.news_title:link {color: #000000; text-decoration: none}
a.news_title:visited {color: #aa0000; text-decoration: none}
a.news_title:hover {color: #000000; text-decoration: none}

改变HTML中超链接的显示样式

标签:html   css   超链接   

原文地址:http://blog.csdn.net/jediael_lu/article/details/38865893

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!