简体   繁体   中英

X-UA-Compatible - render page with installed version of IE

Does using <meta http-equiv="X-UA-Compatible" content="IE=100" > (with <!DOCTYPE html> as the first line of the page) ensure the users installed version of IE will be used?

For example, if a person has IE8 installed and I have the above meta tag in my page, will the browser and document mode remain at their currently installed version (Browser Mode: IE8, Document Mode: IE8)?

The purpose of the X-UA-Compatible tag is to tell newer versions of IE to render a page in an older mode. For example, if you have IE 9 installed but are using styles that aren't rendering properly in IE 9 but look right in IE 8, you can add the tag to tell IE 9 to render the page using the IE 8 mode.

If you want to tell the browser to render using the most recent version of its rendering engine, use IE=edge.

You can find more information about X-UA-Compatible on MSDN.

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