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

Css style compatible IE6,IE7,FIREFOX browser Writing tutorial

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

Share

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

This article mainly explains the "Css style compatible with IE6,IE7,FIREFOX browser writing tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Css style compatible IE6,IE7,FIREFOX browser writing tutorial" bar!

According to the differences in some symbol recognition between FF and IE, we can define styles for FF and IE separately, for example:

Distinguish IE6 from FF:

Background:orange;*background:blue

Distinguish IE6 from IE7:

Background:green! important;background:blue

Distinguish IE7 from FF:

Background:orange; * background:green

Distinguish between FF,IE7,IE6:

Background:orange;*background:green! important;*background:blue

Note: IE can recognize *; standard browsers (such as FF) can not *

IE6 can recognize *, but not! important

IE7 can recognize *, can also recognize! important

FF does not recognize *, but can recognize! important

So the standard way to write FF,IE7,IE6:

Color:#fff; * color:#000! important; * color:#ff6600

Firefox: White, IE7: black, IE6: orange

Add another one, underscore "_"

IE6 supports underlining, while neither IE7 nor firefox supports underlining.

So you can also distinguish IE6,IE7,firefox in this way.

: background:orange;*background:green;_background:blue

Note: no matter what method it is, the writing order is firefox in front, IE7 in the middle, and IE6 at the end.

Thank you for reading, the above is the "Css style compatible with IE6,IE7,FIREFOX browser Writing tutorial" content, after the study of this article, I believe that everyone on the Css style compatible with IE6,IE7,FIREFOX browser writing tutorial this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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