协和飞机视频:我在样式表定义两种的链接样式,一种是默认的,另外一种怎么在网页中运用呀

来源:百度文库 编辑:高校问答 时间:2024/05/08 05:23:10
一种是下面这:
A:link {
font-family: "宋体";
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}

A:visited {
font-family: "宋体";
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}

A:hover {
font-family: "宋体";
font-size: 12px;
color: #000000;
text-decoration: none;
}
A:active {
font-family: "宋体";
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}
另一种是这:
A.b:link {
font-family: "宋体";
font-size: 12px;
color: #FF0000;
text-decoration: none;
}

A.b:visited {
font-family: "宋体";
font-size: 12px;
color: #000000;
text-decoration: none;
}

A.b:hover {
font-family: "宋体";
font-size: 12px;
color: #FF0000;
text-decoration: none;
}

A.b:active {
font-family: "宋体";
font-size: 12px;
color: #FF0000;
text-decoration: none;
}
我要在网页中怎么运用第二种呀

<a href="网址" class="b">文字链接</a>