Highlight the selected menu in spring with struts

后端 未结 1 592
一向
一向 2021-01-25 07:28

Is there any way to highlight the current menu which have been clciked.I am using left-mnu.jsp in which i have all the menu which i am including in each jsp pages.Now i use a v

1条回答
  •  孤独总比滥情好
    2021-01-25 07:58

    You can do that with CSS only, setting the id of the home with a word related to the id of the selected menu item, like described here.

    Or with Javascript, matching the URL of the current page with the URL of the menu items (if they're href), like described here (approach #2)

    Or do it with JSP tags, etc...

    0 讨论(0)
提交回复
热议问题