简体   繁体   English

将鼠标悬停在单个菜单项上时如何使整个菜单出现?

[英]How to make the entire menu appear when hovering over a single menu item?

I am trying to make the entire menu including submenu items for every menu item appear whenever I hover over one of the menu items.每当我在其中一个菜单项上进行 hover 时,我都会尝试使整个菜单(包括每个菜单项的子菜单项)出现。 This is a menu design popular in Korea but I cannot find an explanation online on how to do it.这是在韩国流行的菜单设计,但我无法在网上找到如何做到这一点的解释。 Can anyone offer some advice or pointers on how to do this?任何人都可以就如何做到这一点提供一些建议或指示吗? Thank you.谢谢你。

This is one of the websites that uses the design I mention: https://www.saga121.com/这是使用我提到的设计的网站之一: https://www.saga121.com/

a sample example.一个示例。 hover over list 2,appear submenu. hover 超过列表 2,出现子菜单。

 li{ float:left; list-style:none; width: 30px; margin: 10px; text-align: center; }.ul2{ display:none; }.li2{ cursor: pointer; }.li2:hover.ul2{ display:block; }
 <ul class="ul1"> <li>1</li> <li class="li2">2 <ul class="ul2"> <li>3</li> <li class="li4">4</li> </ul> </li> </ul>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM