Change bootstrap navbar collapse breakpoint without using LESS

前端 未结 19 2545
囚心锁ツ
囚心锁ツ 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:22

    For Bootstrap 3.3 this is the only code you need:

    @media (min-width: 768px) and (max-width: 1000px) {
       .navbar-collapse.collapse {
           display: none !important;
       }
       .navbar-toggle{
            display: block !important;
       }
       .navbar-header{
            float: none;
       }
    }
    

提交回复
热议问题