请问为什么我的dl标签里的所有a标签的字颜色都改变不了?
京东分类导航css
body{
padding:0;
font-size:10pt;
}
.topmenu{
display:block;
width:220px;
border:2px solid #e4393c;
margin:0;
padding:0;
background-color:#c81623;
}
#toptittle{
height:40px;
line-height:40px;
text-align:left;
padding-left:20px;
font-size:11pt;
font-weight:bold;
color:White;
background:#e4393c;
}
.topmenu li{
height:30px;
line-height:30px;
font-size:11pt;
list-style-type:none;
text-align:left;
z-index:3;
text-indent:20px;
background-image:url(dirction.png);
background-repeat:no-repeat;
background-position:right;
}
.topmenu li:hover{
background-image:none;
background:white;
padding-left:1px;
}
.topmenu li:hover a{
color:#F00;
}
.topmenu li a{
text-decoration:none;
color:#FFF;
}
.submenu{
display:none;
width:715px;
left:220px;
position:absolute;
top:40px;
border:1px solid #ddd;
z-index:4;
background:white;
}
.leftdiv{
background:white;
float:left;
width:490px;
margin:5px;
}
.rightdiv{
background:blue;
float:right;
width:200px;
margin:5px;
}
.topmenu li:hover .submenu{
display:block;
}
.topmenu li:hover span{
z-index:20;
width:10px;
height:30px;
display:inline-block;
float:right;
background:white;
position:relative;
}
.leftdiv dl{
display:inline-block;
overflow:hidden;
padding-bottom:6px;
border-bottom:1px solid #CCC;
}
.leftdiv dl dt{
display:inline-block;
float:left;
width:70px;
height:22px;
line-height:22px;
padding-right:15px;
text-align:right;
}
.leftdiv dl dt a{
color:#666;
font-weight:bold;
text-decoration:underline;
font-size:10pt;
}
.leftdiv dl dd{
display:block;
overflow:hidden;
}
.leftdiv dl dd a{
font-size:9px;
color:gray;
border-left:1px solid #999;
hight:14px;
line-height:14px;
display:block;
float:left;
margin:4px 0;
padding-right:20px;
}
我明明设置的是灰色,但是为什么一定给设置了红色呢? |
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|