Change bootstrap navbar collapse breakpoint without using LESS

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

    Hi i think you can do it using CSS like this you can change breakpoint bootstrap menu

        @media (max-width: 1200px) {
        .navbar-header {
            float: none;
        }
        .navbar-left,.navbar-right {
            float: none !important;
        }
        .navbar-toggle {
            display: block;
        }
    
        .navbar-collapse.collapse {
            display: none!important;
        }
        .navbar-nav {
            float: none!important; 
        }
        .navbar-nav>li {
            float: none;
        } 
        .collapse.in{
            display:block !important;
        }
       .navbar-nav .open .dropdown-menu {
           position: static;
           float: none;
           width: auto;
           margin-top: 0;
           background-color: transparent;
           border: 0;
           -webkit-box-shadow: none;
           box-shadow: none;
        }
    }
    
    0 讨论(0)
提交回复
热议问题