首页 新闻 搜索 专区 学院

透明背景的问题

0
悬赏园豆: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">&lt;</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">&gt;</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">&lt;</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">&gt;</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">&lt;</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">&gt;</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">&gt;</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> 不好意思 我的情况是这样才对 中间还有一个图片
cloudgamer的主页 cloudgamer | 菜鸟二级 | 园豆:280
提问于:2008-08-08 13:51
< >
分享
最佳答案
0
用透明png来做背景,或者cc不要包含在bb中
wsky | 小虾三级 |园豆:558 | 2008-08-09 23:43
其他回答(2)
0
Jared.Nie | 园豆:1940 (小虾三级) | 2008-08-09 08:33
0
bb一定要放在cc里面么?
Jerry Young | 园豆:435 (菜鸟二级) | 2008-08-09 23:48
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册