IE5.5开始支持浮动框架的内容透明。如果想要为浮动框架定义透明内容,则必须满足下列条件。  
1.与 iframe 元素一起使用的 allowTransparency 标签属性必须设置为 true。  
2.在 iframe 内容源文档,background-color 或 body 元素的 bgColor 标签属性必须设置为 transparent。
具体步骤:
1. 包含框架页的代码。  

<body bgColor="#eeeeee">
<iframe allowTransparency="true" src="transparent.htm">
</iframe>

2.transparent.htm页的代码。

<body bgColor="transparent">
透明的iframe文档

其实,在iframe中利用allowTransparency="true"就可以了

posted on 2008-10-23 13:52  cqsar  阅读(421)  评论(0编辑  收藏  举报