css中如何让 子div 不继承父div 的透明度? 30
<styletype="text/css"><!--body{background-color:#000000;}.b{width:500px;height:400px;...
<style type="text/css">
<!--
body {
background-color: #000000;
}
.b{width:500px; height:400px ; background-image:url(images/mabg.gif); filter:alpha(opacity=70);}
.c{width:200px; height:100px; filter:alpha(opacity=100); margin:-50px 0px 0px 0px;}
-->
</style></head>
<body>
<div class="b">
<div class="c" ><img src="images/jg.gif"></div>
</div>
</body>
如何让了DIV的透明度是100?我这样写还是70 展开
<!--
body {
background-color: #000000;
}
.b{width:500px; height:400px ; background-image:url(images/mabg.gif); filter:alpha(opacity=70);}
.c{width:200px; height:100px; filter:alpha(opacity=100); margin:-50px 0px 0px 0px;}
-->
</style></head>
<body>
<div class="b">
<div class="c" ><img src="images/jg.gif"></div>
</div>
</body>
如何让了DIV的透明度是100?我这样写还是70 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询