Change bootstrap navbar collapse breakpoint without using LESS

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

    I just did this successfully by using the following CSS code.

    @media(max-width:1000px)  {
    
        .navbar-collapse.collapse {
            display: none !important;
        }
    
        .navbar-collapse {
            overflow-x: visible !important;
        }
    
        .navbar-collapse.in {
          overflow-y: auto !important;
        }
    
        .collapse.in {
          display: block !important;
        }
    
    }
    

提交回复
热议问题