[英]http-equiv=“X-UA-Compatible” content
I should have IE 8 document mode in ie8. 我应该在ie8中使用IE 8文档模式。
and ie 9 document mode in ie 9 和即9中的文档模式
for this what should I do for this? 为此,我该怎么办?
Note:My Doc type is <!DOCTYPE html>
注意:我的文档类型是<!DOCTYPE html>
You want Internet Explorer to render using it's most up-to-date rendering engine? 您要Internet Explorer使用其最新的渲染引擎进行渲染吗? If so, this will do it: 如果是这样,它将这样做:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
The above tag should be included in the <head>
section of your web page. 以上标记应包含在网页的<head>
部分中。 Internet Explorer will use this "X-UA-Compatible" flag to determine which rendering mode to use. Internet Explorer将使用此“ X-UA-Compatible”标志来确定要使用的呈现模式。 By specifying "edge"-rendering, you are instructing IE to use it's most up-to-date engine. 通过指定“ edge”渲染,您将指示IE使用其最新引擎。 For further information on this topic, check out this resource: http://en.wikipedia.org/wiki/Compatibility_mode_(browser)#Internet_Explorer 有关此主题的更多信息,请查看以下资源: http : //en.wikipedia.org/wiki/Compatibility_mode_(browser)#Internet_Explorer
I should add that this is the default behaviour unless the user's browser is set to run in Compatibility mode by default. 我应该补充一点,这是默认行为,除非默认情况下将用户的浏览器设置为在兼容模式下运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.