改变HTML中超链接的显示样式 分类: C1_HTML/JS/JQUERY 2014-08-27 10:11 595人阅读 评论(0) 收藏

时间:2022-05-29 22:53:43

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

版权声明:本文为博主原创文章,未经博主允许不得转载。