Under IE7, the absolute position is blocked by the following elements

Source: Internet
Author: User

Understanding css is the most basic thing. Today, I accidentally used position and found that it is normal in ie8 and browsers. In ie7 and ie6, the relative element is completely blocked by the relative element. It is regarded as a z-index problem, but it does not work after the z-index is modified...

Baidu after the discovery of Blog: http://blog.sina.com.cn/s/blog_648b3bb101016l6n.html

I have read some documents. When the parent element with relative positioning is set, if the z-index attribute is not set, and the position: relative element is set later, the subsequent elements will block the previous elements, no matter how large a z-index is set for the preceding Element

The solution is to set the parent element z-index: 100, which must be greater than the blocked element.

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.