[Web development] How to enable IE8 to automatically display webpages in compatibility mode

Source: Internet
Author: User
Solve the Problem of webpage display in IE8

By default, IE8 uses standard mode to display webpages. If the webpageCodeThere is no standardization, and it may be abnormal in IE8. In this case, users can use the Compatibility View to browse the Web page. The so-called compatibility mode is actually the Display Engine of IE7. There is a compatibility mode button on IE8 to allow users to switch to the compatibility mode.

To save the trouble of clicking the compatibility mode button, you can add the following code to

<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie7"/>

Webpage code example:

  1. <Html>
  2. <Head>
  3. <! -- Use IE7 mode -->
  4. <Meta HTTP-equiv="X-UA-compatible" Content="Ie = emulateie7" />
  5. <Title>My web page</Title>
  6. </Head>
  7. <Body>
  8. <P>Content goes here.</P>
  9. </Body>
  10. </Html>

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.