The path in the original CSS can be crossed: the hover continues to define ...... (Update 04-10)

Source: Internet
Author: User

In Stu Nicholls .......

I have always used the path method to define a style, but I never thought of crossing the path: hover, and then the long path to: hover is an end point.

It is easy to understand without the JS drop-down. Click Display: none in the UL/OL drop-down list. Previously, this attribute was changed through JS, and UL Li A: hover ul {display: block} was crossed }. As for the horizontal and vertical patterns, the key is the bridge.

Why did I not think of it? Why! Seriously attacked, reflecting on ......

Thanks to Stu Nichols, his Compatibility Design is worth learning.

PS: This menu is still limited, that is, you must define a path CSS for each level. It cannot be applied cyclically, it cannot be "unlimited" or "Limited, of course, it may not affect much in general. I can pre-define Level 4 to meet most of the requirements. But it is still limited in definition. If not, you can write the loopProgramOr JS, But it violates the original intention of pure CSS. Although technologies must complement each other to maximize the potential, I still hope that when Will programmable "CSS" appear? Or it already exists, but I don't know ......

2006 04-08

It is far from easy to find, not just a leap: hover can solve the problem, but also involves the use of table and visibility. If no table is used, the drop-down list will not be displayed (Why ?); If visibility is not used, the level-3 menu will not disappear once activated (Why ?). This cool man, admire ......

The menu still has many details to solve, such as text adaptive width. His approach is to set the width, which is not suitable for chinese menus of different levels in the OA system. Continue Thinking ......

2006 04-10

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.