怎样用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>
上一篇:禁止网页另存为的代码
相关新闻
- 小程序登录流程图理解 2020-08-18
- 在C#中获取web.config中的配置信息 2021-08-23
- 小程序open-data头像样式 2021-04-10
- 小程序rich-text 富文本解析图片过大和图片路径的问题 2020-11-25
- C#中去掉字符串的最后一个字符 2020-11-23