如何在asp.net中的菜单项单击事件上设置菜单? [英] how to set menus on click event of menu item in asp.net?
本文介绍了如何在asp.net中的菜单项单击事件上设置菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个菜单,我想要的是,当我单击菜单的父项时,只有子项目应该显示,意味着我不想在鼠标悬停时显示子项目.我应该怎么做.是否应该设置任何属性,或者我必须为其编写代码,请提供帮助.
i have a menu, what i want is that when i click on parent item of menu then only subitem should display,mean i dont want to display subitem on mouseover. what should i do.Is there any property should i set or i have to write code for it please help.
推荐答案
由于该问题是重新发布,因此发布相同链接作为答案:
如何在点击事件中在菜单中显示子菜单 [ ^ ]
另一个链接:
aspnet-menu-click-instead-of-hover [ ^ ]
As this question is a repost, posting the same link as answer:
how to show submenu in menu in click event[^]
Another link:
aspnet-menu-click-instead-of-hover[^]
请参见ur菜单中的css,将显示.hover效果,请删除它,然后尝试运行..DeepuJi
或尝试使用静态菜单
see the css of ur menu''s ul li there will be .hover effect Please remove it than try it will run..Deepu Ji
or try with static menu
这篇关于如何在asp.net中的菜单项单击事件上设置菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文