阅读背景:

类“当前页”导航元素的最简单方法?

来源:互联网 

I have a navigation bar on my webpage with links to different pages. Is there an easy way to automatically set the class on the navigation element corresponding to the current page? For instance, I want the "About Us" tab on the bar to have a different style if you're currently viewing the "About Us" page. I know I could rig up some PHP for each page, but I'd rather have a more general set-it-and-forget-it solution.I have a navigation bar on my webpage with link




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: