Force browser to run in IE8 version

Source: Internet
Author: User

As a developer, the front page is often required to be compatible with IE8 and above, so sometimes we want IE to open our page in IE8 version by default.

1. "Document Mode":

Add code similar to the following in the HTML page:

<metahttp-equiv="X-UA-Compatible" content="IE=EmulateIE7">

X-ua-compatible value Description
Ie=5 Let the browser use Quirks mode to show that the content is actually displayed using the Quirks mode of Internet Explorer 7, which is very similar to IE5.
Ie=edge

This setting allows IE to use the current highest version for document parsing, and official documentation indicates that the edge mode is only available in the test environment and is not recommended for use in a production environment

Ie=7 Use standard IE7 to handle
Ie=emulateie7 Analog IE7 to process, follow <! doctype> directive, if the document has a valid <! currently Doctype> using IE7 mode, no one uses Quirks mode (Internet Explorer 5 Quirks), which is the preferred compatibility mode for most Web sites
Ie=8 Standard IE8
Ie=emulateie8 Analog IE8, follow <! Doctype> instructions, refer to IE=EMULATEIE7 instructions
Ie=9 Standard IE9

Ie=emulateie9

Analog IE9, follow <! Doctype> instructions, refer to IE=EMULATEIE7 instructions

Chrome=1 Forcing Chrome to work requires chrome plugin support under IE
Ie=emulateie10 Analog IE10
ie=10 Standard IE10, follow <! Doctype> instructions, refer to IE=EMULATEIE7 instructions

2. Browser mode

Registration form: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\main\featurecontrol\feature_browser_emulation

Add a DWORD value with the name: iexplore.exe the value is decimal 8888 or 8000 . After saving, reopen IE browser (IE8 or higher), you will find that the browser is now using the IE8 mode is browsing.

Value Description
10001 (0x2711) Internet Explorer 10. Web page in the IE 10 standard mode display, page! DOCTYPE invalid
10000 (0x02710) Internet Explorer 10. In IE 10 Standard mode, follow the page! DOCTYPE instructions to display the Web page. Internet Explorer 10 default value.
9999 (0x270f) Windows Internet Explorer 9. Force IE9 display, ignore! DOCTYPE directive
9000 (0x2328) Internet Explorer 9. Internet Explorer 9 Default value, in IE9 Standard mode, follow the page! DOCTYPE instructions to display the Web page.
8888 (0X22B8) Internet Explorer 8, Force IE8 Standard mode display, ignore! DOCTYPE directive
8000 (0X1F40) Internet Explorer 8 default settings, in IE8 Standard mode, follow the page! DOCTYPE Command Display Web page
7000 (0x1b58) Use the default values used by the WebBrowser control application in IE7 Standard mode on the Web page! DOCTYPE instructions to display the Web page.

Force browser to run in IE8 version

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.