Use float to create a menu compatible with IE6 pure CSS, with no table or JS

Source: Internet
Author: User

 

<! Doctype HTML> <HTML lang = "en"> 

  

 

 

DL. Nav and UL are both floating. Use margin:-888px-150px 0 0 to hide the sub-menu ul;
When you move the mouse over. Nav A,. Nav A: hover uses margin-Right: 1px to squeeze down the sub-menu.
Width of NAV dd A + sub-menu. Nav dd Li a = sum of the parent element and. Nav dd

PS: When I was just finished, there was a bug in IE7, And. Nav dd ul added a width ..
PS2: After adding a width, the sub-menu can be displayed under IE7, but you cannot click to select... Set the width of. Nav dd ul to width: auto ..
PS3: Remove overflow and width of. Nav dd ul.

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.