css的span问题

来源:百度知道 编辑:UC知道 时间:2024/05/16 20:35:39
广告业(advertising) "广告业“这三个中文字用的样式与(advertising)是不同的两个样式。现在在这整个词组上加个链接,并且用css语言加上当鼠标移到这个链接上时整个词组都变成f85723为背景颜色,字体由黑体变为白体的动作。可是我怎么改都是”广告业“这三个字有这个动作,附带(advertising)的背景也会变成f58723的颜色,但是(advertising)字体没有变为白色,而且我给(advertising)加的css动作代码没用。望高手帮我解决这个问题,并附上详细代码,多谢。
.link-6 {

font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
font-size: 12px;
color: 4E4E4E;
}
.link-5 {

font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
font-size: 10px;
color: 4E4E4E;
}
.link-5:hover,.lingk-6:hover{
background-color:f58723;
color:white;
}

或者来看看这个代码:
<td width="70%" class="link-6"><a href="#" class="link-6"><span class="link-5">Advantage
West Midland</span></a></td>
"Advantage West Midla

====== 针对问题补充 ======

非常抱歉,前两天我写的代码没有测试过,想当然写了一堆东西。看见了你的问题补充之后我试了一下,发现确实有问题。结果用dw搞了半天,愣是没搞出来。最后想了一个变通的办法,要求达到了,就是有点“低级”,呵呵。看看代码吧:

<head>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #666666;
}
a:active {
text-decoration: none;
color: #666666;
}
.link6 {
font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
font-size: 16px;
color: #4E4E4E;
}
.link6:hover{
color:#FFFFFF;
background-color: #f58723;
text-decoration: none;
}
.link6 a:link{
font-size: 16px;
color: #4E4E4E;
}
.link6 a:visited{
font-size: 16px;
color: #4E4