简体   繁体   English

在html css javascript jquery中创建导航菜单?

[英]creating navigational menus in html css javascript jquery?

I want to make such kind of menus when I click the holiday/seasonal then all of its related list open. 当我单击假日/季节,然后打开所有相关列表时,我想进行此类菜单。 For example: 例如:

屏幕截图

I have searched the internet for submenus but it is not giving right method. 我已经在互联网上搜索了子菜单,但没有给出正确的方法。 If you know the right method for creating this menus, please share the link or give some guidance! 如果您知道创建此菜单的正确方法,请共享链接或提供一些指导!

My first suggestion would be to use two nested <ul> s (pointed lists), both with attribute list-style-type: none , as in this fiddle . 我的第一个建议是使用两个嵌套的<ul> s(指向列表),它们都具有list-style-type: none属性list-style-type: none ,就像这个小提琴一样 This no-JS solution opens the submenu when just hovering, not clicking. 此no-JS解决方案仅在悬停而不是单击时打开子菜单。

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

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