本文将介绍CSS中如何设置超链接的字体颜色。在CSS中,可以使用a标签来创建超链接,如下所示:Example 上面的代码创建了一个指向"http://www.example.com"...
本文将介绍CSS中如何设置超链接的字体颜色。
在CSS中,可以使用a标签来创建超链接,如下所示:
<a href="http://www.example.com">Example</a> <a href="http://www.example.com" style="color: red;">Example</a> a {
color: blue;
} <a href="http://www.example1.com" class="link1">Example 1</a>
<a href="http://www.example2.com" class="link2">Example 2</a>
.link1 {
color: red;
}
.link2 {
color: green;
}