Home >Web Front-end >CSS Tutorial >Tips for making css compatible with IE8_Experience exchange
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: