Css网格出错了

时间:2016-02-02 21:54:55

标签: html css grid

我尝试在css中做一些网格,但是这里出了点问题,我不明白我做错了什么,跟着我的jsFiddle用代码

jsFiddle

/*Grid*/
.container {
  width: 100%;
  max-width: 1200px;
}
.row:before,
.row:after {
  content: "";
  display: table;
  clear: both;
}
[class*='col-'] {
  float: left;
  min-height: 1px;
  width: 8.3333%;
  padding: 15px; /*Gutter*/
}
.col-lg-1 {width: 8.3333%;}
.col-lg-2 {width: 16.6666%;}
.col-lg-3 {width: 25%;}
.col-lg-4 {width: 33.3333%;}
.col-lg-5 {width: 41.6666%;}
.col-lg-6 {width: 50%;}
.col-lg-7 {width: 58.3333%;}
.col-lg-8 {width: 66.6666%;}
.col-lg-9 {width: 75%;}
.col-lg-10 {width: 83.3333%;}
.col-lg-11 {width: 91.6666%;}
.col-lg-12 {width: 100%;}

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:1)