Asp.Net Mvc highlighting current page link technique?

前端 未结 6 1168
误落风尘
误落风尘 2020-12-04 10:35

I need to highlight active link in the menu. My menu is in the master page by the way. I\'m looking for the best way to implement this? Any ideas?

6条回答
  •  星月不相逢
    2020-12-04 10:58

    I'm pretty sure you can do this with pure CSS. It involves class selectors and faffing around with the body tag. I would go with the helper method every day of the week.

提交回复
热议问题