相关疑难解决方法(0)

X-UA-Compatible设置为IE = edge,但它仍然不会停止兼容模式

我很困惑.我应该可以设置

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Run Code Online (Sandbox Code Playgroud)

IE8和IE9应使用最新的渲染引擎呈现页面.但是,我刚刚对它进行了测试,如果在我们网站的其他地方启用了兼容模式,它将保留在我们的页面上,即使我们应该强制它不要.

怎么是你应该确保IE浏览器没有(甚至在企业内部网)使用兼容模式?

FWIW,我正在使用HTML5 DocType声明(<!doctype html>).

以下是该页面的前几行:

<!doctype html> 
<!--[if lt IE 7 ]> <html lang="en" class="innerpage no-js ie6"> <![endif]--> 
<!--[if IE 7 ]>    <html lang="en" class="innerpage no-js ie7"> <![endif]--> 
<!--[if IE 8 ]>    <html lang="en" class="innerpage no-js ie8"> <![endif]--> 
<!--[if (gte IE 9)|!(IE)]><!--> 
<html lang="en" class="innerpage no-js"> 
<!--<![endif]--> 
    <head> 
        <meta charset="ISO-8859-1" /> 
        <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
Run Code Online (Sandbox Code Playgroud)

编辑:我刚刚了解到 IE8的默认设置是对Intranet站点使用IE7兼容模式.这会覆盖X-UA兼容的元标记吗?

internet-explorer ie8-compatibility-mode x-ua-compatible

246
推荐指数
9
解决办法
37万
查看次数

Angular 2/4/5在IE11中无效

我试图找出为什么我的角度2应用程序在IE 11中运行时显示正在加载...

根据某人的建议,我尝试过这个有关堆栈溢出的人,在Chrome和IE 11上发布.在Chrome上工作正常,但在IE 11上失败.同样的错误,坚持说"正在加载..."

吸虫是:https://plnkr.co/edit/6zVFbrH5yohwc714gBbk p = preview

<!DOCTYPE html>
<html>
  <head>
    <script>document.write('<base href="' + document.location + '" />');</script>
    <title>Router Sample</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script>
    <script src="https://code.angularjs.org/2.0.0-beta.1/angular2-polyfills.js"></script>
    <script src="https://code.angularjs.org/tools/system.js"></script>
    <script src="https://code.angularjs.org/tools/typescript.js"></script>
    <script src="https://code.angularjs.org/2.0.0-beta.1/Rx.js"></script>
    <script src="https://code.angularjs.org/2.0.0-beta.1/angular2.dev.js"></script>
    <script src="https://code.angularjs.org/2.0.0-beta.1/http.dev.js"></script>
    <script>
      System.config({
        transpiler: 'typescript', 
        typescriptOptions: { emitDecoratorMetadata: true }, 
        packages: {'src': {defaultExtension: 'ts'}} 
      });
      System.import('src/boot')
            .then(null, console.error.bind(console));
    </script>
  </head>

  <body>
    <my-app>loading...</my-app>
  </body>

</html>
Run Code Online (Sandbox Code Playgroud)

任何人都知道为什么IE 11无法运行角度2应用程序?

谢谢!

internet-explorer typescript angular

114
推荐指数
11
解决办法
15万
查看次数

X-UA兼容有什么意义?

我不明白,在所有什么<meta http-equiv="X-UA-Compatible" content="..." />是...

有人能解释一下......

  • 它对不同的价值观做了content什么?
  • 对于不同的浏览器省略了什么?
  • 它的动机是什么?
  • 它为什么存在?

html x-ua-compatible

8
推荐指数
2
解决办法
7140
查看次数