悬赏园豆:10
[已解决问题]
解决于 2008-08-18 17:29
<DL class=code>
<DT>HTML code
<DD><PRE><DIV><!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
--><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">div </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="ddd"</SPAN><SPAN style="COLOR: #ff0000"> style</SPAN><SPAN style="COLOR: #0000ff">="width:200px; height:200px;"</SPAN><SPAN style="COLOR: #ff0000"> style</SPAN><SPAN style="COLOR: #0000ff">=" background-color:#0000FF"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">div </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="cc"</SPAN><SPAN style="COLOR: #ff0000"> style</SPAN><SPAN style="COLOR: #0000ff">="width:100%; height:50%; background-color:#00FF00;"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">div </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="bb"</SPAN><SPAN style="COLOR: #ff0000"> style</SPAN><SPAN style="COLOR: #0000ff">="width:100%; height:50%; background-color:#990000"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">></SPAN></DIV>
</PRE></DD></DL><BR><BR>如何让cc的背景透明而又不影响bb的显示 <BR>用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>
不好意思
我的情况是这样才对
中间还有一个图片