SuGod / SuGod.github.io

blog
0 stars 0 forks source link

CSS的一些技巧总结 #2

Open SuGod opened 6 years ago

SuGod commented 6 years ago

bootstrap 中的栅格. .row 下的两个 col 等高:

  1. 奇技淫巧...
    col-xx{
    height:0;
    padding-bottom:100%;
    }
  2. 使用flex
    .ibox-content > .row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    }
    .ibox-content > .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    }