提问时间: 2008-08-08 13:51
悬赏分:10 浏览:161 次
- HTML code
<div id="ddd" style="width:200px; height:200px;" style=" background-color:#0000FF">
<div id="cc" style="width:100%; height:50%; background-color:#00FF00;">
<div id="bb" style="width:100%; height:50%; background-color:#990000">
</div>
</div>
</div>
如何让cc的背景透明而又不影响bb的显示
用opacity的话bb也会透明
问题补充:HTML code<div id="ddd" style="width:200px; height:200px; position:relative;">
<img src="p/1.jpg" width="200px" height="200px" />
<div id="cc" style="width:100%; height:50%;position:absolute; top:0; left:0; border:1px solid #000000;" onmousedown="alert(this.id)"> </div>
</div>
不好意思
我的情况是这样才对
中间还有一个图片