ie10没有显示某些内容的问题

时间:2013-06-05 17:42:48

标签: internet-explorer iframe internet-explorer-10 doctype

我有一个iframe调用PHP文件来调度一些文本链接。如果我在ie10中将文档模式更改为ie9,则iframe显示正常。但是在ie10标准(或怪癖)模式下,内容将不会出现。以下是我试图展示的iframe来源的链接

http://www.businessdictionary.com/ad_server/iframe.php?id=34

我尝试过以下所有选项:

1)添加doctype

2)使用X-UA-Compatible元标记的所有组合

但没有任何帮助。

不确定它是否与IE10或页面中的某些内容有关。

1 个答案:

答案 0 :(得分:0)

有趣。该页面使用大量的document.write调用,而不是操纵DOM对象。

如果您更改注入的JavaScript: document.write ('<a href="http://oascentral.businessdictionary.com/RealMedia/ads/click_lx.ads/w...'

到此: document.write ('.<a href="http://oascentral.businessdictionary.com/RealMedia/ads/click_lx.ads/w...

然后页面工作正常。