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

前端 未结 6 2285
甜味超标
甜味超标 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:04

    The colors of the toggle and icon-bar are defined along with navbar-default as well as with navbar-inverse. So if you are trying to display them on a custom div, the colors are also removed along with the navbar-default/inverse color scheme.

    Add this to your css:

    .navbar-toggle {
        background-color: transparent;
    }
    .icon-bar {
        background-color:#333;
    }
    

提交回复
热议问题