IE6/7 and IE8/9/10 (IE7 mode) hides the parent and child elements with absolute or relative in turn, and then displays the parent element. The child element can still display bugs.

Source: Internet
Author: User

In most cases, hide (set display: None) an element. You do not need to hide all its child elements in sequence. To do this, you may encounter unexpected bugs. As follows:

1, two divs, D1 contains D2

Both D1 and D2 have absolute or relative.

3. Hide d1

4. Hide the child element D2.

5. Display d1

At this time, IE6/7 and IE8/9/10 (IE7 mode) will find that the child element D2 can also be displayed (don't forget, D2 is displayed: none ). However, IE8/9/10/firefox5/safari4/chrome12 neutron element D2 is still hidden.

ReproductionCode

 
    
    IE6/7 and IE8/9/10 (IE7 Mode) hide the parent and child elements with absolute or relative, and then display the parent element, sub-elements still show bugs    

1) hide Div [ID = D1] 2) hide Div [ID = d2] 3) show Div [ID = D1]

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.