Css to locate the z-index problem

Source: Internet
Author: User

1. There is a bug in element-level masking in Some browsers;

2. An element z-index is too large to be overwritten;

3. js dynamic z-index calculation, resulting in Controllable element overwrite relationships

Vc + response + jujxicj4KPGJyPgrPyL + response/response + m/9 s/response + a1xDs8YnI + response/response + 1xNSqy9iyu7LO0 + response + response + YyteO94cLbtcS7 + bShyc + jrM7Sw8fS/response/ay47y2tcSxyL3PoaM8YnI + response/response + response/T0LrsyavUssimtcSx7cq + response" http://www.2cto.com/uploadfile/Collfiles/20140321/20140321125539169.png "Alt =" \ ">

The positioning tree contains all the elements in the dom tree whose position is not staitc. Compare hierarchical relationships of non-hierarchical elements as follows:

1. Traverse up the parent node of the positioning tree until the two elements are the same level elements.

2. Make the final comparison based on the above conclusion. The higher the level, the closer the user's display and the lower the level.


Example 1: assume that the position of all marked red elements is not static, and z-index = 1, according to the above comparison rules, we can know:

1. c> (B & B *)> (a & a *) that is, all positioning element levels of Element c and c are higher than those of a and B.

2. m> h, g> k, d> m

Example 2: Assume that position of a is not static and the z-index attribute does not exist. The z-index sub-element of a in the positioning tree is 1, 2, 3, 4 at a time... other positioning elements z-index: 1:

1. conclusion 3: B> (a & a *) in IE6/7 indicates that the level of Element B is higher than that of all positioning ELEMENTS IN a and a. In other browsers: i> h> B> d

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.