Cool and easy to develop. compatible with IE 8 browsers

Source: Internet
Author: User

Just ended the cool mallCodeWriting has now entered the online testing stage. In my spare time, I will review some of the knowledge learned during the development process and new knowledge of software development. You may have problems or unreasonable problems due to your lack of experience. Please help me more.

Article 1: First, write a problem that was first encountered. With the application of IE8, all those who know "fashion" have upgraded their browsers, which also brings problems to our developers, this is also a compatible mode provided by IE8. Although it already exists in IE8, the default loading mode may change the page style during page browsing. Of course, every developer wants to present his work to users with the most beautiful faces, especially the cosmetics mall. The effect of the pages directly affects the user experience and shopping mood, therefore, this is taken into account when developing the page design of cool Mall.

How can I set the default Loading Mode for IE8? Three methods for implementing the default compatibility mode have been summarized.

First, for individual pages, you can add the page meta tag to achieve the night compatibility mode. The Code is as follows:

< Meta HTTP-equiv = "X-UA-compatible" Content = "Ie = emulateie7"   />

You can view the current page in compatible mode by adding the above labels to the page

Second, you can set the mode of the entire site by configuring the Web. config file. The Code is as follows:

Code
1 < Configuration >
2 < System. Webserver >
3 < Httpprotocol >
4 < Customheaders >
5 < Clear />
6 < Add Name = "X-UA-compatible" Value = "Ie = emulateie7" >
7 </ Customheaders >
8 </ Httpprotocol >
9 < System. Webserver >
10 </ Configuration >  
11

After adding this configuration, you can set the access mode of the entire site page.

Third, you can configure the IIS Site to set the Site Page browsing mode. Go to site http header settings to add, texture:

You can set it.

The entire setup process is complete, but it is recommended that you do not use it during the development process, or make the style and code work normally in compatible mode. That is our purpose. For some old sites, this "lazy" method can be used to solve the problem because there is no excessive effort or no cost to change the style and code.

After this article is completed, it is a problem that I encountered at the beginning of the development of cool Mall.ProgramDesign and code are recorded in detail, because it is still in the test process, we also hope you will give more instructions, interested friends can add QQ: 496195435, a piece of learning and progress.

Appendix: Are you learning or using the csla. NET Framework? I have encountered some problems in the learning process. If you want to help me, I can add QQ. Thank you!

 

 

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.