【发布时间】:2016-09-27 10:55:48
【问题描述】:
我对 Neat 非常陌生,目前正在研究一个显示图像库的简单网格。
我的代码
$mobile: new-breakpoint(max-width 500px);
$tablet: new-breakpoint(max-width 768px);
article{
background-color: #efefef;
margin-bottom: 2em;
@include span-columns(3);
@include omega(4n);
@include media($tablet){
background-color: orange;
@include span-columns(4);
@include omega(3n);
}
@include media($mobile){
background-color: yellow;
@include span-columns(6);
@include omega(2n);
}
}
现在在桌面上所有显示都应该如此,但是当我为 平板电脑 或 移动设备 调整大小时,布局会中断,并且我的布局会出现巨大的空白......我知道这是我想念的一个愚蠢的小东西,但就是看不到它(((我希望有人能帮助我。
【问题讨论】: