Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the compatibility problem of IE7 and IE8

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

How to solve the IE7 and IE8 compatibility problem, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Whether IE8 will be a blessing or another halo is said to be fully compatible with standards. Today we will show you how to solve the problem of IE7 and IE8 compatibility.

CSS compatibility: how to solve the BUG of IE7 and IE8

The compatibility of CSS has become an important part of CSS web layout technology, and it is also a big headache for the majority of CSSer. Although 51cto.com has introduced a lot of related knowledge and skills, with the more and more extensive installation and application of IE8, the compatibility of IE7 and IE8 has also attracted much attention.

In a previous article, 51cto.com explained whether IE8 will be a blessing or another halo that is said to be fully compatible with standards. Today, I will show you how to solve the problem of IE7 and IE8 compatibility.

Microsoft provides three modes of parsing pages in IE8

◆ IE8StandardModes: the default most standard mode, in strict accordance with W3C regulations

◆ 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:

ExampleSourceCode

◆ IE8***csshack:

Example: "margin:0pxauto\ 9;". The "\ 9" here can tell all IE from FireFox.

"*" IE6 and IE7 can recognize. IE8 and FireFox cannot.

"_" IE6 can recognize "_", but IE7, IE8, FireFox cannot.

After reading the above, do you know how to solve the compatibility problem between IE7 and IE8? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report