CSS 怎样用css设置超链接字体的不同颜色

作者: 浏览: 发布日期:2011-04-01
[导读]:

怎样用css设置超链接字体的不同颜色

 

2006-6-7 10:39 yywzy

a:link {

        text-decoration: none;

        color: #31687E;

}

a:visited {

        color: #31687E;

        text-decoration: none;

}

a:hover {

        color: #FF0000;

        text-decoration: none;

}

a:active {

        color: #FF0000;

        text-decoration: none;

}

a.v1:link {

        text-decoration: underline;

        color: #31687E;

}

a.v1:visited {

        color: #31687E;

        text-decoration: underline;

}

a.v1:hover {

        color: #333333;

        text-decoration: underline;

}

a.v1:active {

        color: #FF0000;

        text-decoration: none;

}

上面四个为默认的超级链接的样式,下面四个为不同颜色的链接样式,不过在链接的时候要调用一下v1的名字如这种格式<a href="index.asp" class="v1">首页</a>


免责声明:本文来源于网络,版权归原作者所有,仅供大家共同分享学习,如作者认为涉及侵权,请与我们联系,我们核实后立即删除。本站地址:http://www.sjz2.cn/news/show-718.html
请填写下方表单,我们会尽快与您联系
感谢您的咨询,我们会尽快给您回复!