解决方法
CSS:
A.class1 {color:red;} A.class1:link {text-decoration: none; color: red;} A.class1:visited {text-decoration: none; color: red;} A.class1:hover {text-decoration: underline; color: red;} A.class1:active {text-decoration: none; color: red;} A.class2 {color:blue;} A.class2:link {text-decoration: none; color: blue;} A.class2:visited {text-decoration: none; color: blue;} A.class2:hover {text-decoration: underline; color: blue;} A.class2:active {text-decoration: none; color: blue;}
HTML:
<a href="http://www.google.com" class="class1">Google</a> <a href="http://stackoverflow.com" class="class2">Stackoverflow</a>