简体   繁体   English

强制Internet Explorer 10文档模式

[英]Force Internet Explorer 10 Document Mode

Basically I have been going through a problem and would like to enforce my browser to be used under Browser Mode: IE 10 Compatable View and Document Mode: Quirks. 基本上我一直在经历一个问题,并希望强制我的浏览器在浏览器模式下使用:IE 10 Compatable View和Document Mode:Quirks。

As in IE 10 Document Mode is IE 5 Quirks and only Quirks but, I am unable to enforce it by using document mode and meta-tag too. 在IE 10中,文档模式是IE 5 Quirks而且只有Quirks但是,我也无法通过使用文档模式和元标记来强制执行它。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE"/>

This is what I have been trying but no luck. 这是我一直在尝试但没有运气。

You can try this, if the browser it IE10 the rendering machine will be changed to latest one. 你可以试试这个,如果IE10的浏览器将渲染机改为最新的。

!--  Force IE to use the latest version of its rendering engine -->  
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

chrome=1 means IE should use the Chrome rendering engine if installed chrome=1表示IE应该使用Chrome渲染引擎(如果已安装)

I think changing document type Quirks seems a bad idea, however if you need then you may have to remove the !DOCTYPE . 我认为更改文档类型Quirks似乎是一个坏主意,但是如果您需要,那么您可能必须删除!DOCTYPE

If none of these rules apply, the declaration determines whether the webpage renders in a standards mode, Almost Standards mode, or quirks mode. 如果这些规则都不适用,则声明确定网页是以标准模式,几乎标准模式还是怪癖模式呈现。

Reference: http://msdn.microsoft.com/en-us/library/ff405803(v=vs.85).aspx 参考: http//msdn.microsoft.com/en-us/library/ff405803(v = vs。85).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM