I want my application to be opened in
我想要打开我的应用程序
- document mode IE-8 for an IE-8 version browser and
- document mode IE-9 for an IE-9 version browser.
文档模式IE-8用于IE-8版浏览器和
用于IE-9版本浏览器的文档模式IE-9。
Otherwise the application will fail to open some tabs.
否则,应用程序将无法打开某些选项卡。
The <meta> tag to force the browser to open in a particular document mode is like this
强制浏览器以特定文档模式打开的 标记是这样的
<meta http-equiv="X-UA-Compatible" content="IE=9">
If we dont use a <meta> tag, sometimes the browser is opening our application in a different document mode.
如果我们不使用 标签,有时浏览器会以不同的文档模式打开我们的应用程序。
I am using html concept.
我正在使用HTML概念。
Please tell me how we can change the document mode properly according to the browser version.
请告诉我如何根据浏览器版本正确更改文档模式。
2 个解决方案
#1
1
Try IE=Edge
<meta http-equiv="X-UA-Compatible" content="IE=edge">
#2
0
<!--[if IE 8]>
<meta http-equiv="X-UA-Compatible" content="IE=8"> or do whatever you want
<![endif]-->
<!--[if IE 9]>
<meta http-equiv="X-UA-Compatible" content="IE=9"> or do whatever you want
<![endif]-->
#1
1
Try IE=Edge
<meta http-equiv="X-UA-Compatible" content="IE=edge">
#2
0
<!--[if IE 8]>
<meta http-equiv="X-UA-Compatible" content="IE=8"> or do whatever you want
<![endif]-->
<!--[if IE 9]>
<meta http-equiv="X-UA-Compatible" content="IE=9"> or do whatever you want
<![endif]-->