Home > Web Front-end > CSS Tutorial > Tips for making css compatible with IE8_Experience exchange

Tips for making css compatible with IE8_Experience exchange

WBOY
Release: 2016-05-16 12:05:42
Original
1535 people have browsed it

This creates a new problem. Web pages that currently work normally in IE7 will have problems in IE8.
Microsoft provides three modes for parsing pages in IE8
IE8 Standard Modes: The default and most standard mode, strictly in accordance with relevant W3C regulations
IE7 Standards Modes: The mode currently used by IE7 to parse web pages, start The mechanism is to add
Quirks Modes: the mode used by IE5 to parse web pages. The mechanism is to delete the DOCTYPE statement at the top of HTML
Note: Web pages in different modes can frame each other in IE8, so they will not The DOM and CSS rendering in the mode are different, so it will cause a lot of problems. Be sure to pay attention

If your page is compatible with IE7 and has no problem, but you don’t want to modify the existing code a lot, and at the same time it can be used normally in IE8. , Microsoft claims that developers only need to add a line of code to currently compatible IE7 websites to solve the problem. This code is as follows:

Copy code The code is as follows:



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template