ie browser settings Document mode

Solution:

asp.net in:

    <meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9;IE=8;" />

Such a document mode is standard;

JAVA in:

    <meta http-equiv="x-ua-compatible" content="ie=8"/>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 

 

Such as IE8 standards mode document

 

 

////////////////////////////////////////////////////////////////////////////////////////////

The following are for reference only

//////////////////////////////////////////////////////////////////////////////////////////

Project in the IE browser to open the default Quirks mode, causing compatibility is not very good

 

 

Of course, you can manually modify the Internet Explorer8 above mode, but we can not guide the user to do so


You can set DTD declaration lets the browser decide which mode to use code

will

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1
改为

<! DOCTYPE HTML the PUBLIC "- // the W3C // DTD HTML 4.0 // EN" "http://www.w3.org/TR/html4/strict.dtd">
1
this problem will be solved


PS:

And 360 in IE11 browser version of IE7 default document mode, you can set meta tags to change to another mode

<meta http-equiv="X-UA-Compatible" content="IE=9" />
1

Further reading: browser-mode-and-document-mode-in-ie

 

 

 

After IE8 browser version, there is a "compatibility view" so many new technologies can not be used. So how to disable browser automatically select "Compatibility View" to force IE to display content at the highest level available model? Here are just a snippet of HTML code.

X-UA-Compatible is a compatibility mode setting IE browser attributes, browser IE8 after birth. IE8 IE9 or there are many modes, for example, there are four modes IE8: IE5.5 quirks mode, IE7 standard mode, the standard mode is almost IE8, IE8 standard mode; 7 and IE9 modes: IE5.5 quirks mode, IE7 standard mode, IE8 is almost standard mode, IE8 standards mode, IE9 almost standard mode, IE9 standard mode, XML schemas.

We often use the code:

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

To open standards rendering mode IE8. It's more appropriate when there is only IE8 browser, but later appeared IE9, IE10, IE11 and so on. We can write:

<meta http-equiv="X-UA-Compatible" content="IE=9;IE=8;IE=7;" />

Meaning that the foremost priority IE9, IE9 will not use IE8. So if they are written for each again, it seems a bit of redundancy.

So we change the way using the code:

<meta http-equiv="X-UA-Compatible" content="edge" />

Edge mode IE displays the contents of the notification to the highest level available modes, which actually destroyed the "lock" mode.

Of course, we have seen this code:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

Chrome = 1 is to increase the value, purpose is to trigger Google Chrome Frame, but now Google has abandoned Google Chrome Frame, and therefore do not have to write this.

to sum up:

In <! DOCTYPE html>, using code:

<meta http-equiv="X-UA-Compatible" content="edge" />


Trigger standard mode, this is the most effective method.

 

Guess you like

Origin www.cnblogs.com/jtcr/p/10937331.html
Recommended