In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how CSS Hack technology is used in IE browser, the content is very detailed, interested friends can refer to, hope to be helpful to you.
What do you know about IE browser CSS Hack? here's a description of the CSS Hack technology commonly used in IE browsers, including IE's if conditional Hack.
Summary of content for IE CSS hack
Because there are many versions of browsers, there are many kinds of CSS Hack only for IE browsers. I will summarize the ones that are commonly used below for reference.
If condition Hack of IE
IE's if conditional Hack distinguishes IE from other browsers and browsers between IE versions. It uses this syntax to make IE browsers align and parse, which is proprietary to IE browsers.
All IE recognizable
Only IE5.0 can recognize it.
Both IE5.0 packages and IE5.5 can be identified.
Only IE6 can recognize
Both IE6 and IE5.x below IE6 can be recognized.
Only IE7 can recognize
The specific usage of the content between:
You can link a CSS file like this
You can also enter a line of CSS code directly like this.
For different versions of IE CSS Hack
Since they are all IE browsers, there may be several versions that can parse certain methods, so at this point they can only be distinguished by the writing order and unique features of CSS, such as the definition of IE8.
IE8 does not have a unique definition method, so you can only use the methods it supports and the unique methods of other browsers to Hack it by adding the CSS writing order, such as:
.font {color:black; color:red\ 9; * color:blue; _ color:green;}
Using the above methods, you can make IE6, IE7, IE8 browsers and other IE browsers display different font colors. IE6 is green, IE7 is blue, IE8 is red, and the rest is black. This is the role of writing order plus unique characteristics.
Several unique features are listed below:
◆ + htmlselect {… }, only IE7 and IE5.0 can recognize
◆ + htmlselect {...! important;}, only IE7 can recognize
◆ htmlselect {… }
Html > bodyselect {… }
_ property {...}, IE6 and below IE6 can be recognized
◆ select {… }, all IE browsers below IE8 can recognize
> the rule can be recognized by property important IE7 and IE8
The above select is a selector, such as div, p, or .style, and property is a property, such as color, font-size, and so on.
So much for sharing about the usage of CSS Hack technology in IE browsers. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.