iframe背景图像在Firefox中显示很好,但在IE中不显示 [英] iframe background image showing fine in Firefox but not in IE

查看:225
本文介绍了iframe背景图像在Firefox中显示很好,但在IE中不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么IE不会在Iframe中显示类似firefox的BG mage?

Why IE not showing BG mage like firefox in Iframe?

我没有iframe页面的访问权限。

I do not have access of iframed page.

任何CSS或JavaScript解决方案

any CSS or javascript solution

推荐答案

以及添加CSS样式 background-color:透明; 到iframe文档的body元素,您还需要将 allowtransparency 属性添加到包含文档中的iframe元素。

As well as adding the CSS style background-color:transparent; to the iframe document's body element, you will also need to add the allowtransparency attribute to the iframe element in the containing document.

请参阅 http://msdn.microsoft.com/en-us/library/ms533072(VS.85).aspx 了解更多信息。

如果可以不修改iframe的文档,那么你运气不好。也许还有另一个来源可以用于以不同格式(例如XML或JSON)提供的数据?

If you can't modify the iframe's document then you are out of luck. Maybe there's another source you can use for the data that provides it in a different format such as XML or JSON?

这篇关于iframe背景图像在Firefox中显示很好,但在IE中不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆