Make CSS compatible with IE8 Tips _ Experience Exchange
Source: Internet
Author: User
This is a new problem, and the Web pages that are currently working in IE7 are problematic in IE8.
Microsoft offers three modes of parsing pages in IE8
IE8 Standard Modes: The default mode, in strict accordance with the relevant regulations
IE7 Standards MODES:IE7 now uses the mode of parsing the page, the open organ is added in the
Quirks modes:ie5 The mode of parsing the Web page, the open authority is to remove the DOCTYPE declaration at the top of the HTML
Note: Web pages in different modes can frame each other in IE8, so the DOM and CSS rendering is not the same in the schema, so there are a lot of problems, so be sure to note
If your page is IE7 compatible, and you don't want to make a lot of changes to your existing code, and you can use it in IE8, Microsoft claims that developers just need to add a line of code to the current IE7-compatible site to solve the problem, as follows:
Copy the Code code as follows:
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