Bootstrap 3.0 Button in Navbar

后端 未结 5 1425
春和景丽
春和景丽 2021-01-30 07:57

I upgraded bootstrap 3.0 now. And \"a\" tag which looks like btn (by the help of class .btn) is ruined on navbar.

  • 5条回答
    •  庸人自扰
      2021-01-30 08:48

      Now, bootstrap 3 has buttons in the navbar like this:

      It uses navbar-btn so it knows it's in the navbar.

      If you want it to work, do this:

    • This way, it still acts like an anchor tag. Just change # for the value you actually want it to go to.

      So for this instance:

    提交回复
    热议问题