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 is the application of CSS hack technology in IE8 browser

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

Share

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

In this issue, the editor will bring you about the application of CSS hack technology in IE8 browsers. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

To introduce the use of CSS hack technology in IE8 browsers, CSS hack is a remedy adopted in order to be compatible with different browsers because existing browsers have different parsing of standards, and people who have followed IE8 CSS hack believe that everyone is using this hack, which is "\ 9" CSS hack.

CSS hack Technology in IE8 browser

People who have followed IE8 CSS hack believe that everyone is using this hack, which is the "\ 9" CSS hack:

.test {color:#000000;/*FF,OP support * / color:#0000FF\ 9 IE6+ support * all IE browsers (IE6+) support; but IE8 does not recognize "*" and "_" CSS hack;, so we can write hack * / color:#000000;color:#00FF00;/*SF,CH support * / * color:#FFFF00;/*IE7 support * / _ color:#FF0000;/*IE6 support * /.}

◆, talk about color:#0000FF\ 9:

Hack of color:#0000FF\ 9 supports IE6-IE8 (other versions are not tested), but IE8 does not recognize the CSS hack of "*" and "_", so we can use the

Color:#0000FF\ 9 Tincincter control IE6, IE7, IE8, / * color:#FFFF00;/*IE7*/ _ color:#FF0000;/*IE6*/

To distinguish between versions of IE, I really don't know why "\ 9" is used, but the final effect of the other numbers from 0 to 13 is as follows:

Among them: OP means Opera,SA means Safari,Ch means Chrome;, of course, if you have patience, you can test "\ 14", "\ 15", "\ 16". No, no, no. no, no, no. From the above test results, we can see that the writing of "\ 0" is only recognized by IE8, but not by IE6,IE7, so "\ 0" should be the real hack of IE8.

CSS hack for mainstream ◆ browsers is better this way:

.test {color:#000000;/*FF,OP support * / color:#0000FF\ 0 * / color:#000000;color:#00FF00;/*SF,CH support * / * color:#FFFF00;/*IE7 support * / _ color:#FF0000;/*IE6 support * /}

Where: OP means Opera,SA, Safari,Ch means Chrome.

This is how the application of CSS hack technology in IE8 browsers is shared by the editor. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, 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