Home > Web Front-end > HTML Tutorial > Style writing for ie6_html/css_WEB-ITnose

Style writing for ie6_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:17:52
Original
1069 people have browsed it

Style 1

.content{margin-top:-1px;}
Copy after login


Style 2
* html .content{margin-top:-1px;}
Copy after login




Question: What is the special meaning of * html in Style 2?

Are there any other equivalent specifications?

I am a newbie, please give me some advice! !


Reply to the discussion (solution)

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template