Solve extjs display problems in IE7 compatibility mode

Source: Internet
Author: User

I encountered a strange problem when I used extjs to make a webpage: A good page, some people seem completely normal, but it became a mess on other machines, andCodeI can't see any problems, such as the following dialog box:

On some human machines, this becomes the case:

After looking for a long time, I finally found that the reason is that IE8's strange convention: For All Intranet hosts (including localhost), it will automatically start the so-called IE7 compatibility mode, in this mode, the entire browser is like IE7, and you will see an icon in the figure FLASH: And I tested Ext. isie7 is true-that is, extjs regards it as IE7. However, the worst is that the so-called compatibility mode is not fully compatible, and the above strange phenomenon occurs. It is not difficult to solve this problem. Simply Add the following sentence to the webpage:

 

HTTP-equiv = " X-UA-compatible " content = " Ie = edge " />

 

Here, ie = edge means to allow IE to automatically adapt to the most likely version-in this way, IE8 will regard itself as IE8 without starting the compatibility mode, whether it is Intranet or Internet.

See: http://msdn.microsoft.com/en-us/library/cc288325 (vs.85). aspx

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.