如果所有元素恰好跨越一列,Susy可以 自动(不指定omega
)填充多列布局吗?
我想要什么:
+---------+---------+
| I | want |
+---------+---------+
| two | columns |
+---------+---------+
我得到什么(下面的代码):
+---------+
| I |
+---------+
| want |
+---------+
| two |
+---------+
| columns |
+---------+
HTML:
<div id="container">
<div>I</div>
<div>want</div>
<div>two</div>
<div>columns!</div>
</div>
SCSS:
@import 'susy';
$total-columns: 2;
$column-width: 200px;
$gutter-width: 5px;
$grid-padding: 10px;
#container {
@include container;
@include susy-grid-background;
&>div {
@include span-columns(1);
height: 50px;
}
}