Create Responsive Tabs using Bootstrap (They should get stacked automatically on smaller screens)

前端 未结 6 966
悲哀的现实
悲哀的现实 2021-01-31 10:41

How can I create responsive tabs which get stacked automatically using bootstrap. The code for my navs is -

6条回答
  •  别跟我提以往
    2021-01-31 11:38

    If you are using SCSS or LESS support, you should use the proper media query vars:

    In SCSS:

      @media (max-width: $screen-md-min) {
        .nav-tabs > li {
          float:none;
        }
      }
    

    In Less:

      @media (max-width: @screen-md-min) {
        .nav-tabs > li {
          float:none;
        }
      }
    

    Check http://getbootstrap.com/css/ for details regarding the possible vars.

提交回复
热议问题