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


更详细的内容请参考: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}

原文地址:https://www.cnblogs.com/jediael/p/4304060.html