IFrame背景图像未在IE6和IE7中显示
-
10-07-2019 - |
题
我需要帮助。 它在firefox或Opera中运行正常。 问题出在ie。 我试着将它放在样式文件中,或内联样式但不起作用。
解决方案
您是否尝试过设置allowTransparency = <!> quot; true <!> quot;在iframe上并将子框架的文档正文的背景颜色设置为透明?
请参阅有关allowTransparency的MSDN文档:
其他提示
在研究这个问题时,一些帖子在所有大写字母中都使用了ALLOWTRANSPARENCY。 ie7(在ie9开发者工具中)没有响应它,直到我把它变成<!>“allowTransparency <!>”。
为了它的价值。
试试这个..它应该可行(在IE / Firefox / Google Crome中测试)
<div><img src="a.JPG"></div>
<div>
<iframe style="display:none" width="325" height="276" frameborder="0" scrolling="auto"></iframe>
</div>
不隶属于 StackOverflow