Home > Article > Web Front-end > Style writing for ie6_html/css_WEB-ITnose
Style 1
.content{margin-top:-1px;}
* html .content{margin-top:-1px;}
After waiting for so long, there is no one yet! ! !
Mainly for the nesting logic of CSS.
But *html is of little practical significance. Usually possible nesting is
.ttt .aaa .bbb
{
}
or
tag1 tag2{
width:20px;
}
This kind of nesting usually means that the style can only be applied to the element structure that conforms to this logic.
*html is a filter for ie6 and lower ie versions. html is the first element on the web page, which is the root element, but the old version of ie has an anonymous and element. He surrounds the html element. *html is to use the universal selector (that is, the * sign) to specify the html element surrounded by another element. This situation is only valid for IE6 and lower browsers.
*html is a filter for ie6 and lower ie versions. html is the first element on the web page, which is the root element, but the old version of ie has an anonymous and element. He surrounds the html element. *html is to use the universal selector (that is, the * sign) to specify the html element surrounded by another element. This situation is only valid for IE6 and lower browsers.
Oh, are there any similar filter-like specifications?
There is no standard. This writing method is also an implementation of ordinary selector technology. Just like * html is actually implemented using the universal selector (* sign). These are mainly for some bugs in the old version. There are many ready-made examples on the Internet, so don’t pay too much attention to this aspect.