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

What are the tips for using CSS compatible IE8

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article shows you what are the tips for using CSS compatible IE8. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Tips for making CSS compatible with IE8

IE8Beta1 has been released, in which we can see many new features, such as the layout engine will "fully" support CSS2.1 and HTML5, so it is different from the Layout engine used by IE browsers before, and the previous IE browsers are not fully compliant with Internet standards.

In this way, there is a new problem, and web pages that currently work in IE7 will have problems in IE8.

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: Web 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, so you must pay attention to it.

If your page is compatible with IE7 and doesn't want to modify a lot of existing code, while working normally in IE8, Microsoft claims that developers only need to add a line of code to the current IE7-compatible website to solve the problem, as follows:

The copy code is as follows:

What are the above tips for using CSS compatible IE8? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

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