发布于 2016-07-28 00:48:29 | 233 次阅读 | 评论: 0 | 来源: 网友投递
Bootstrap v4.0.0-alpha.3 发布了,该版本主要对网格系统做了如下改进:
Our ready-made grid classes (containers and columns) are now behind a Sass variable, meaning grid classes can easily be disabled via Sass variable. Update the boolean $enable-grid-classes
variable and recompile to remove them.
Grid modifier classes are simpler and no longer require the col-
prefix. For example, instead of .col-offset-*-*
, .col-push-*-*
, and .col-pull-*-*
, we now have .offset-*-*
, .push-*-*
, and .pull-*-*
.
Mixins have been changed, and then changed again, to in an effort to keep generated classes simple and cooperative between standard and flexbox modes. Our two primary column mixins are now make-col-ready
, which houses the position
, padding-*
s, and min-height
(to prevent collapsing empty columns), and make-col
for setting the float
and width
.
Added a grid customization section to the docs to explain how to change the number of columns, grid tier breakpoints, container widths, and more.
下载地址:
bootstrap-4.0.0-alpha.3-dist.zip