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

前端 未结 6 1199
小鲜肉
小鲜肉 2021-02-13 09:23

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 09:53

    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
    

提交回复
热议问题