多级下拉 - 有可能吗? [英] Multi level drop down - Is it possible?

查看:83
本文介绍了多级下拉 - 有可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

是否可以在下拉列表中添加另一个级别,例如它看起来像带有子类别的下拉菜单?



通常可以在这里看到



http://www.ajaxtoolkit.net/DropDown/DropDown.aspx [ ^ ]



,我想知道是否可以在选定的下拉列表项中添加另一个子类别?



我的客户不需要级联下拉列表。

相反,他想要一些他可以像菜单一样鼠标移动并选择项目。

Hi guys,
Is it possible to add another level on a drop down list such as it would look like drop down menu with sub categories?

The usual one can be seen here

http://www.ajaxtoolkit.net/DropDown/DropDown.aspx[^]

and I was wondering if it is possible to add another sub category to the selected drop down list item?

My client does not want cascading drop down list.
Instead he wants something he can do mouse over like menu and select the item.

推荐答案

毫无疑问,这是可能的。毕竟,菜单是多层次的。您需要的可能是菜单和下拉控件的某种组合。我从来没有见过这样的控制,但毕竟 http://www.ajaxtoolkit.net 是开源的,所以你可以参加来源,看看它是如何实现的,并创建自己的控件。



-SA
No doubt it is possible. After all, menu is multi-level. What you need could be some combination of menu and drop-down control. I never saw such control, but, after all, http://www.ajaxtoolkit.net is open-source, so you can take the source and see how it is implemented and create your own control.

—SA


Of当然是。正如SA已经说过你可以自己修改代码,或者你可以自己实现代码。

SA建议一种方式。

另一种方式是去对于 CSS 。这可能有点棘手,但是一旦你理解它,它就会更容易使用它。

在这里你必须要注意你想要在你的项目中显示的项目(多级别)下拉列表。您可以通过代码进行管理。



了解如何使用 CSS / Jquery 创建多级下拉列表:

http://www.dynamicdrive.com/dynamicindex1/indexc.html [ ^ ]

< a href =http://webcache.googleusercontent.com/search?q=cache:http://www.jqueryscript.net/menu/Multi-Level-Drop-Down-Menu-with-Pure-CSS3-Minimal-透明Menu.html> http://webcache.googleusercontent.com/search?q=cache:http://www.jqueryscript.net/menu/Multi-Level-Drop-Down-Menu-with-Pure-CSS3 -Minimal-Transparent-Menu.html [ ^ ]

http://webcache.googleusercontent.com/search?q=cache:http://www.sanwebe.com/ 2013/06 / multi-level-dropdown-menu-css [ ^ ]

http://webcache.googleusercontent。 com / search?q = cache:http://www.bappi-d-great.com/create-multi-level-drop-down-menu-in-css/ [ ^ ]



-KR
Of course it is. As SA has said you can modify the code by yourself or rather you can implement by your own.
Well one way is suggested by SA.
And the other way is go for CSS. It could be a bit tricky, but once you understand it, it'd be more easy to work with it.
Here you have to take care about the items that you want to show in your (multi level) dropdown list. You can manage it through code.

See how to create multi-level drop down list using CSS/Jquery :
http://www.dynamicdrive.com/dynamicindex1/indexc.html[^]
http://webcache.googleusercontent.com/search?q=cache:http://www.jqueryscript.net/menu/Multi-Level-Drop-Down-Menu-with-Pure-CSS3-Minimal-Transparent-Menu.html[^]
http://webcache.googleusercontent.com/search?q=cache:http://www.sanwebe.com/2013/06/multi-level-dropdown-menu-css[^]
http://webcache.googleusercontent.com/search?q=cache:http://www.bappi-d-great.com/create-multi-level-drop-down-menu-in-css/[^]

-KR


这篇关于多级下拉 - 有可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆