本文介绍了强制iFrame的父窗口进入兼容性模式,无权访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook目前在Internet Explorer(IE 9)中有多个JavaScript问题,但是通过点击IE 8兼容模式按钮或通过开发工具切换到IE 8兼容性,您可以摆脱所有的JavaScript错误。

Facebook is having allot of JavaScript issues at the moment in Internet Explorer (IE 9), however by clicking the IE 8 Compatibility Mode button, or by switching to IE 8 Compatibility via the Developer tools you can get rid of all the JavaScript errors.

我的应用程式正在使用较新的iFrame方法,我试过下列标记:

My apps are using the newer iFrame method, I have tried the following tags:

< meta http -equiv =X-UA-Compatiblecontent =IE = EmulateIE8/>

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

< meta http-equiv =X-UA-Compatiblecontent =IE = IE8/>

<meta http-equiv="X-UA-Compatible" content="IE=IE8" />

似乎没有将父框架切换到正确的模式(document.documentMode!= 8),是否有办法强制IE 9通过JavaScript或一些未记录的方法从整个网站(facebook.com)进入兼容模式?

Neither seemed to switch the parent frame into the correct mode (document.documentMode != 8), is there a way to force IE 9 into Compatibility mode for the whole site (facebook.com) from within a iFrame either via JavaScript or some undocumented method?

推荐答案

除非您拥有该网站的控制权。

Not unless you have control of the site.

这篇关于强制iFrame的父窗口进入兼容性模式,无权访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 19:10