发布网友
共5个回答
热心网友
这样是不可以的
他们是两个页面
css
没有继承关系
现在的iframe
已经过期
不是很非常需要
还是用div代替
你设置也只能设置成background-color:yellow
热心网友
<div id="photorecom">
</div>
<img src="images/text.gif" width="925" height="96" alt="i" />
photorecom设的背景颜色半透明50% ,然后图片绝对定位在层上,也不妨是解决办法之一
热心网友
外面在套个div;图片绝对定位 再挪到photorecom div的下面去;photorecom的宽高要设定。
<div style="overflow:hidden;zoom:1;position:relative;">
<div id="photorecom">
</div>
<img src="images/text.gif" width="925" height="96" alt="i" style="position:absolute;top:0;left:0;"/>
</div>
热心网友
#photorecom {透明}
#photorecom * {不透明} //这个div里面的所有东西都不透明
热心网友
#photorecom{filter:alpha(opacity=50);}
#photorecom img{filter:alpha(opacity=100);}