李占山
2016-10-23 11:06

.news_type_content{
height: 365px;
background: url(../img/content_bg.gif) repeat-x;
}
.news_type_content li{
height: 30px;
line-height: 30px;
}
.news_type_content li a{
color: #666;
background: url(../img/li_bg.gif) no-repeat left center;
padding-left: 15px;
display: block;
}
.news_type_content li a:hover{
color: #009CDF;
background: url(../img/li_bg2.gif) no-repeat left center;
background: #F2F2F2;
}
把最后那句改成background-color:#f2f2f2;就好了,原因是最后一句把上面那句覆盖了
企业网站综合布局实战
157078 学习 · 2157 问题
相似问题