Strange mode when Web pages are accessed after uploading to the server (Quirks mode)

Source: Internet
Author: User

1. For more information, please refer to: http://blog.csdn.net/freshlover/article/details/11616563

http://blog.csdn.net/barebear/article/details/5100260


2, when using Jsp+tomcat+mysql development, after the Tomcat uploaded to the server, using 360 browser through IP access to the site, the original very good site style will become chaotic, navigation bar, pictures, especially the box model will have a great change. Use the 360 tool-"developer tools." When I look at the document mode of the Web page, we find that the Qiurks mode is used, the webpage changes when the mode is 7 and 8, but it can't change to the desired mode. Normal effects can occur when using standard and IE9. However, it is not possible to display the Qiurks mode by default every time.



3, tried some methods on the Internet. Modifies the doctype of the JSP file.

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en"
"Http://www.w3.org/TR/html4/loose.dtd" >


Changes to various modes have not obtained the desired results, but the document mode has a strange mode changed to IE7 mode.


4, the last method of use. Add a META tag

<meta http-equiv= "x-ua-compatible" content= "Ie=edge"/>

Document: Http://www.cnblogs.com/0000/archive/2009/11/01/1593851.html

It shows several values of content,

IE=EMULATEIE8 IE8  ie=emulateie9 IE9    ie=edge  using the latest version  
Finally, this method is used to get the results you want to display. In fact, the Web page is not compatible with IE8 and below. This makes the text model use the latest version, which is the current IE9, and is only a surface-resolved incompatibility issue.







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.