In CSS, what does * HTML> body mean?

Source: Internet
Author: User
> Is a subselector used to match the Direct Generation of other elements, belonging to css2.

For example:
Body> P {color: red ;}
<Body>
<P> content </P>
<Div> <p> content </P> </div>
</Body>

Only the first match, and the second p is the lower-level of the DIV, so it is the child level of the body, and it does not match.
* Is a common selector that matches any element in the document.
For example:
Body * ul {color: Gray ;}
The color of UL elements below two levels of the Body element is gray.
That is to say, the UL element of any lower level of the Body element is not gray, but other ul elements, whether it is Div's lower level element, list item, or table, will become gray.
* HTML> body
I don't know how to explain this. The scope is too large.
For the current HTM file, the HTML Tag is already the outermost layer, and the body is the direct lower level of HTML.
I seem to remember
HTML> body # top {
Height: 70px;
}
This is to avoid a decomposition bug of opera.

The first of the two heights above is an error in the ie5 box model. The second height is the correct number.

I have mentioned these in <website reconstruction>. Buy a book and check it out.
CSS: TDG provides a detailed description of all attributes of css1 and most attributes of css2.

At the time of writing, the support of css2 was still not perfect, just like Qian Kun's great move. Zhang Wuji has never been trained on the Seventh Layer before, so with Eric Meyer's ability (he is a special expert in the W3C css2 group), many results can only be imagined. Of course, the support of css1 can be basically used, which is described in detail.

Currently, modern browsers (Moz, IE6, Safari, and opera) have almost perfect support for css1, and most of css2 have good support (except IE6 ).

> * These delimiters are not supported by IE6, but can be used by IE6 behavior to write HTC files.

This is mentioned in a project of Eric Meyer's more Eric Mayer on CSS. In addition, the http://dean.edwards.name/IE7/ provides a fairly good IE6 patch package, let you install on the site, can make IE users smoothly Browse with these choices CSS.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.