1,写一个和它等级为兄弟关系的div,给这个div加css样式:
#menu_listbg li{ width:100%; height:40px; opacity:0.4; background-color:#000; filter:alpha(opacity=40); color:#fff; font-family:"Microsoft YaHei"; font-size:13px; list-style:none; text-align:center; line-height:40px; margin-top:1%; } 2,给本身添加样式:
#header{width:100%; height: 48px;
background-color: rgba(0,0,0,0.65);}
@media \0screen\,screen\9 {
#header{
width:100%;
background-color:#000; filter:Alpha(opacity=65); position:static; *zoom:1;
}
}
转载请注明原文地址: https://ju.6miu.com/read-1124366.html