我以winforms形式主持MSIE.不幸的是,它坚持在兼容模式下运行,无论我是否在独立IE中给它一个在IE8模式下运行的页面.这样做的结果是,在独立的MSIE中正确呈现的某些内容在托管控件中完全错位并混乱.
除了文档类型等,还有一些神奇的方法告诉webbrowser我希望它以与在独立的MSIE中加载它相同的方式呈现页面吗?
I don't want to use the registry key override ( http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx ) due to my form being part of an add-in for another app. I don't want to change the IE behavior for the main app and I don't want to change it for other add-ins running under that app. I only want this to work within the browser hosted in my form, not app-wide and not process-wide.
internet-explorer webbrowser-control internet-explorer-8 winforms ie8-compatibility-mode
所以我在设置IE32时遇到IE8不能默认为IE7文档模式的问题.
我正在使用IE开发工具设置加上一点点js来检查浏览器报告文档模式的内容.
除了我可以提供的标记之外,我将无法更改任何设置.换句话说,我不是管理员,我唯一的控制是在浏览器中.
我试过了:
<meta http-equiv="x-ua-compatible" content="IE=8">
Run Code Online (Sandbox Code Playgroud)
但这并没有改变文档模式的报告方式,它仍然报告为IE7.
internet-explorer internet-explorer-8 compatibility-mode ie8-compatibility-mode
在IE 8中,我们可以展示开发人员工具.然后在顶部,有一个浏览器模式:
IE 7
IE 8
IE 8 Compatibility View
Run Code Online (Sandbox Code Playgroud)
因此,如果IE 7要强制页面显示为浏览器是IE 7,并且
IE 8要强制使用标准IE 8显示页面,
那么额外的内容是什么IE 8 "Compatibility View"?有什么用?如果我们已经拥有IE 7,为什么需要这种额外模式?该模式IE 7不能做什么模式?
internet-explorer internet-explorer-8 internet-explorer-7 ie8-compatibility-mode
我正在寻找一些代码(PHP或JavaScript)可以很好地检查查看页面的用户是否使用兼容模式.
然后我可以使用该代码来做一些条件语句,或者基本上给它们一个通知来关闭它.
我有一个布局问题,这是由于在IE8上以兼容模式呈现包含页面.有没有办法检测是什么导致IE8进入特定页面的兼容模式?
根据Microsoft的文档,以下条件可能导致页面以兼容模式呈现(http://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx):
在查看了页面之后,我排除了第一种可能性,它必须是页面上的页面布局错误.我想找到这个错误.
以下是我页面顶部的代码:
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<title></title>
...
Run Code Online (Sandbox Code Playgroud)
我正在使用Paul Irish的条件注释代码来更容易地检测和解决IE问题,但是这段代码似乎本身就是一个问题.问题是,使用条件注释代码强制我的页面进入IE8兼容模式,尽管事实上我ie=edge根据MSDN指南明确声明.
删除html标记周围的条件注释代码可修复毛刺并让IE8以标准模式呈现; 但我更愿意找到一个解决方案,让我保留条件代码并仍然强制IE在标准合规模式下呈现.请记住,我没有.htaccess文件可供使用,因为此站点使用的是windows/asp设置.
我已经开始了一个必须支持Internet Explorer 8及更高版本的新项目.在我的开发机器上我有IE 10.如果我打开IE 10开发人员工具(通过按F12),我可以将模式更改为"IE 8",可能是模拟IE 8.
我的问题是:仿效有多好?我看到微软非常友好地为我们提供了运行IE 8的虚拟机进行测试,但如果我能在IE 8兼容模式下使用IE 10进行大量测试,那肯定会更方便.
有没有人遇到在IE 8实际IE 8中以不同于IE 10模式呈现的网站?看到具体的例子对我来说非常方便.
internet-explorer emulation ie8-compatibility-mode internet-explorer-10
我已阅读以下MSDN页面:
http://msdn.microsoft.com/en-en/library/cc817574.aspx
关于SO的问题很多,但我并不完全相信我有我想要的答案.
我们目前正在处理一个问题,即我们的客户端将所有计算机从IE6升级到IE8,但是通过组策略,它们强制IE8以兼容模式运行.
我认为这样做是为了让传统的内部应用程序继续工作.然而这打破了我们的网站,因为我们不支持IE7 100%
使用Meta标签:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Run Code Online (Sandbox Code Playgroud)
要覆盖其兼容模式设置并强制我们的网站使用IE8,证明他们的组策略未设置为8888?
8888:无论指令如何,页面始终显示在IE8mode中.(这绕过了前面列出的例外情况.)
经过测试,我发现Disqus使IE8进入兼容模式"Hard Assert".当我删除它时,它会停止行为并保持标准模式.由于IE8潮流到Windows XP,IE8将会出现一段时间.值得修理.有人知道解决这个问题吗?我已经联系过Disqus支持.我不希望快速回应.
我有angularJS(AngularJS v1.3.0-beta.3)应用程序在IE10兼容模式下崩溃.它适用于FF,Chrome和IE11.这是我在控制台中得到的错误:
Multiple directives [login, login] asking for 'login' controller on: <div>
Run Code Online (Sandbox Code Playgroud)
设置应用程序的状态,我创建一个节点:
link: function ($scope, $element, $attrs) {
....
$element.html('<login></login>');
$compile($element.contents())($scope); // crash happens here
....
}
Run Code Online (Sandbox Code Playgroud)
这是我的登录指令:
widgets.directive('login', ['$compile', '$http', 'resourceLoader', function ($compile, $http, resourceLoader) {
return {
restrict: 'AE',
replace: true,
template: '<div></div>',
controller: function ($scope, $element) {
$scope.user.isLogged = false;
$scope.user.password = undefined;
$scope.submitLogin = function () {
// code that goes to server
};
},
link: function ($scope, $element, $attrs) {
resourceLoader.get('templates', 'profile', 'unlogged/login', 'jquery.min', …Run Code Online (Sandbox Code Playgroud) javascript ie8-compatibility-mode internet-explorer-10 angularjs
javascript ×2
angularjs ×1
disqus ×1
dom ×1
emulation ×1
group-policy ×1
html ×1
html5 ×1
php ×1
winforms ×1