61,112
社区成员
发帖
与我相关
我的任务
分享
.test #ul li.active{ background:#.... }
.test #ul li a{ disaplay:inline-block; background:#....}
.test #ul li a:active{ background:#.... }
.test li {
color: #f5f5f5;
float: none;
width: 200px;
background: #101010;
margin-bottom: 3px;
line-height: 60px;
list-style-type: none;
}
.test a {
color: #f5f5f5;
padding-left: 60px;
}
.test li:hover {
display: inline-block;
color: #000000;
float: none;
width: 200px;
background: #06b2e3;
margin-bottom: 3px;
line-height: 60px;
}
.test #ul li.active {
display: inline-block;
color: #000000;
float: none;
width: 200px;
background: #f5f5f5;
margin-bottom: 3px;
line-height: 60px;
}
.test #ul li a {
display: inline-block;
color:#000000;
float: none;
width: 200px;
background: #f5f5f5;
margin-bottom: 3px;
line-height: 60px;
}
.test #ul li a:active {
background: #f5f5f5;
float : none;
width: 200px;
margin-bottom: 3px;
line-height: 60px;
}
目前而言进去网站就是黑背景白字的li标签,鼠标移到上面背景会变成蓝色。但是我设置为class="active"的BBB背景不是我设定的白色的。