Full width tabs using Bootstrap (Support IE)

后端 未结 8 1511
孤城傲影
孤城傲影 2021-02-02 07:34

I\'m trying to adjust Bootstrap tabs to make them span the full width of their container. Here\'s my code (a minimal working example):


<         


        
8条回答
  •  盖世英雄少女心
    2021-02-02 08:34

    Simple:

    .nav-tabs > li {
        /* width = (100 / number of tabs). This example assumes 3 tabs. */
        width:33.33333%;
    }
    

    Hope that helps!

提交回复
热议问题