The object that absolute located in IE6 disappears!

Source: Internet
Author: User
The object that absolute located in IE6 disappears!

When I made a page today, I encountered a layer that needed to be positioned as absolute. Of course, the first thing I thought of was to set the parent object to relative. There was no problem in viewing the page in Firefox, however, when you open IE6 to view the page, you cannot find the Absolute layer!

It's really depressing. I have met this rare situation !..
I first thought of removing the top and left of the absolute layer, refreshing the page, and still cannot see it in IE6, so that I can determine that it is irrelevant to top and left.

In fact, this is a bug in IE6! The Absolute layer has no placeholder, so we can add a div outside the Absolute layer, as shown below:
<Div style = "position: relative;">
<Div>
<Div style = "position: absolute;"> Absolute layer </div>
</Div>
<Div> layer on the left! </Div>
<Div> layer on the right! </Div>
</Div> As shown above, after adding a DIV, it can be correctly displayed.

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.