如何在asp.net中使用jquery,css,javascript突出显示所选的垂直菜单项 [英] how to highlighting the selected vertical menu item using jquery,css,javascript in asp.net
本文介绍了如何在asp.net中使用jquery,css,javascript突出显示所选的垂直菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在asp.net?
How to highlight the selected vertical menu item using jquery,css,javascript in asp.net?
推荐答案
中使用jquery,css,javascript突出显示所选垂直菜单项您可以做一件事。分配菜单项ID&点击每一个添加一个活动的css类到它。
请检查我为此添加的小提琴。 小提琴 [ ^ ]
希望这会有所帮助。
但如果您使用Bootstrap或Kendo,那么您无需为此烦恼。然后在布局中使用一个小的JavaScript代码处理活动的css。
谢谢。
:)
You can do one thing. Assign the Menu items id & on click of each of the add a class active with the css to it.
Please check the fiddle I have added for this. Fiddle[^]
Hope this would help.
But if you use Bootstrap or Kendo, then you need not bother for this. Then handle the active css using a smalljavascript code in the layout only.
Thanks.
:)
这篇关于如何在asp.net中使用jquery,css,javascript突出显示所选的垂直菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文