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

前端 未结 6 1207
小鲜肉
小鲜肉 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 10:01

    I'm not sure if you want to add another one or is it enough to change the existing one. I case, you want to change the existing one, on a default/clean bootstrap install, this show do it:

    .navbar-toggle {
        display: block;
    }
    
    .navbar-collapse.collapse {
        display: none !important;
    }
    

提交回复
热议问题