How to get Twitter-Bootstrap navigation to show active link?

前端 未结 22 2166
一整个雨季
一整个雨季 2020-11-27 09:31

I\'m not understanding how Twitter Bootstrap does active links for the navigation. If I have a regular navigation like this (with ruby on rails linking):

<         


        
22条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 10:13

    You sound like you need to implement a navigation system. If it's complex, it might get pretty ugly and pretty fast.

    In this case, you might want to use a plugin that can handle that. You could use navigasmic or simple navigation (I would recommend navigasmic because it keeps the main layer in a view, where it belongs, and not in some configuration)

提交回复
热议问题