不同连接颜色
2013-08-15 00:01:29   来源:   浏览: 次

导读:a a2{ font-size: 12px; } a a2:link { color: ff0000; text-decoration: none; } a a2:visited { text-decoration: none; color:
a.a2{
font-size: 12px;
}
a.a2:link {
color: #ff0000; 
text-decoration: none;
}
a.a2:visited {
text-decoration: none;
color: #ff0000; 
}
a.a2:hover {
text-decoration: underline;
color: #18D7A5; 
}
a.a2:active {
text-decoration: none;
}


或者:li a:hover{}
li a{}
这样的方式也可以