简体   繁体   中英

http-equiv=“X-UA-Compatible” content

I should have IE 8 document mode in ie8.

and ie 9 document mode in ie 9

for this what should I do for this?

Note:My Doc type is <!DOCTYPE html>

You want Internet Explorer to render using it's most up-to-date rendering engine? 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. Internet Explorer will use this "X-UA-Compatible" flag to determine which rendering mode to use. By specifying "edge"-rendering, you are instructing IE to use it's most up-to-date engine. For further information on this topic, check out this resource: 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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