Deep Z-index

Source: Internet
Author: User

Today saw the Zhang Xin Asahi great god about Z-index video. Below, write down your own temporary summary. There may be no place to go back to modify

Start by saying some basic concepts and rules:

cascading contexts: 1. Page root element 2. Position the element and the Z-index value is numeric (visible Z-index is limited by the cascading context) 3. When setting other properties (especially many properties in CSS3). In this case, the element will have a cascading context, with cascading context stacked horizontally higher than ordinary elements, so if the normal element does not have a cascading context, it will "sink" until the page root element is encountered as a cascading context

Cascade level: In the context of a cascade in the order of display (z-axis) direction, the cascade level is all elements have, and z-index only positioned elements have

Stacking order: Is the rule, a complete cascading context element needs to follow such a rule: see Seven hierarchy Level chart

Cascading comparisons: The first general rule is: 1. Document flow in order, who after who on 2.z-index size, who big on;

There are a few things to note: if nested, the child element is determined by the comparison between its parent elements.

There are, of course, a lot of examples to illustrate, not to be continued ...

Deep Z-index

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.