Change bootstrap navbar collapse breakpoint without using LESS

前端 未结 19 2469
囚心锁ツ
囚心锁ツ 2020-11-22 07:55

Currently when the browser width drops below 768px, the navbar changes to collapsed mode. I want to change this width to 1000px so when the browser is below 1000px the navba

19条回答
  •  一向
    一向 (楼主)
    2020-11-22 08:38

    This is what did the trick for me:

    @media only screen and (min-width:769px) and (max-width:1000px){
    .navbar-collapse.collapse {
        display: none !important;
    }
    .navbar-collapse.collapse.in {
        display: block !important;
    }
    .navbar-header .collapse, .navbar-toggle {
        display:block !important;
    }
    

提交回复
热议问题