In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to solve the compatibility problem between CSS and IE7 and IE8". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how CSS solves the compatibility problem with IE7 and IE8".
CSS compatibility: how to solve IE7 and IE8 compatibility issues
With the popularity of CSS, more and more developers begin to use CSS to layout their websites. However, the emergence of IE8 makes the normal layout of many CSS under IE7 become messy in IE8. This paper mainly discusses the compatibility of CSS in IE7 and IE8.
Microsoft provides three modes of parsing pages in IE8
◆ IE8StandardModes: the default most standard mode, in strict accordance with W3C regulations
◆ IE7StandardsModes:IE7StandardsModes:IE7 now uses the mode of parsing web pages. When you start the server, you add it in.
The mode of parsing web pages used by ◆ QuirksModes:IE5. The startup is to delete the DOCTYPE statement at the top of HTML.
Note: pages in different modes can frame each other in IE8, so the rendering of DOM and CSS in non-mode is different, so it will cause a lot of problems. Be sure to note that if your page is compatible with IE7 and does not want to modify a lot of existing code, and can be used normally in IE8 at the same time, Microsoft claims that developers only need to add a line of code to the current IE7-compatible website to solve the problem, as shown below:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.