简体   繁体   English

http-equiv =“与X-UA兼容”的内容

[英]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.

相关问题 meta http-equiv X-UA-Compatible - meta http-equiv X-UA-Compatible 内容页面<meta http-equiv=“X-UA-Compatible” content=“IE=10”/> - Content page with <meta http-equiv=“X-UA-Compatible” content=“IE=10”/> 做什么<meta http-equiv="X-UA-Compatible" content="IE=edge">做? - What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do? http-equiv =“X-UA-Compatible”content =“IE = edge,chrome = 1”......把它放在.htaccess中? - http-equiv=“X-UA-Compatible” content=“IE=edge,chrome=1” … Putting this in .htaccess? <meta http-equiv=“X-UA-Compatible” content=“IE=Edge” />在IE 11中无法正常工作 - <meta http-equiv=“X-UA-Compatible” content=“IE=Edge” /> is not working in IE 11 如果我使用&#39;在Microsoft Edge浏览器上会出现渲染问题 <meta http-equiv=“X-UA-Compatible” content=“IE=7” /> &#39;? - Would rendering problems occur on Microsoft edge browser if I use '<meta http-equiv=“X-UA-Compatible” content=“IE=7” />'? IE 8仍在运行兼容模式,即使http-equiv =“ X-UA-Compatible” content =“ IE = edge,chrome = 1” - IE 8 still running compatibility mode even http-equiv=“X-UA-Compatible” content=“IE=edge, chrome=1” FIX:Ipad迷你HTML边距/填充<meta http-equiv=“X-UA-Compatible” content=“IE=edge,chrome=1”> - FIX: Ipad Mini HTML margin/padding with <meta http-equiv=“X-UA-Compatible” content=“IE=edge,chrome=1”> 当使用http-equiv =“ X-UA-Compatible”时,IE8将不会显示帧 - IE8 will not display frames when http-equiv=“X-UA-Compatible” is used 错误:元素元数据上的属性http-equiv的值X-UA-兼容错误 - Error: Bad value X-UA-Compatible for attribute http-equiv on element meta
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM