Bootstrap css, how to make always visible navbar-toggle?

前端 未结 6 2272
甜味超标
甜味超标 2021-02-13 09:07

I\'d like to add one of those buttons that are shown when on mobile device in order to open the collapsed menu in the navbar, but haven\'t been able so far, here\'s the less cod

6条回答
  •  礼貌的吻别
    2021-02-13 10:00

    In a normal bootstrap install, there is this line of css found in their generic css file:

    .navbar-toggle { display:none; }
    

    In order to get the button to always show, in your custom CSS you just need to add this line of code. If you have your stylesheet applied after theirs, it will overwrite it.

    .navbar-toggle { display:block; } // the !important isn't necessary
    

提交回复
热议问题