In IE6, the upper and lower li la s will flash. The nested div-the outer Div's inner Div sets the background color and the inner Div's background color is not displayed.

Source: Internet
Author: User
View code

1 <Div style = "margin-top:-93px" class = "CTN">
2 <Div class = "content">
3 </div>
4 </div>
5
6 Div. CTN {Background: # Eee; display: none; position: absolute; margin:-30px 0 0 177px; width: 570px; padding: 5px; Border: 1px # cc0000 solid; z-index: 100 ;}
7 Div. CTN Div. Content {Background: # fffafa; padding: 5px ;}

1. If no width is set for the inner Div, the background color of the inner div is not displayed. Only the width is set.

Set the width of the inner Div Style

Div. CTN Div. Content {Background: # fffafa; padding: 5px; width: 570px ;}

The background color of the inner div is displayed.

2. Several Li-level and up-and-down arrangements in IE6 will flash,

If the height is not set for Li, and Li contains diasplay: Block Element A, and the height of a is different from that of Li, move the cursor up and down in IE6, li jitters and affects user experience. The solution is

Add an hack for IE6, _ display: inline. If it is changed to an element in the row, it will not shake.

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.