这个问题已经被问过了,但解决方案对我没有任何帮助。
屏幕.css.scss
// Settings
$total-columns : 6;
$column-width : 4em;
$gutter-width : 1em;
$grid-padding : $gutter-width;
$tablet : 8;
$desktop : 12;
// Layout
body {
@include container($total-columns, $tablet, $desktop);
.logo {
@include span-columns(4);
}
nav {
@include span-columns(2 omega);
}
}
@include at-breakpoint($tablet) {
.logo {
@include span-columns(5, $tablet);
}
nav {
@include span-columns(3 omega, $tablet);
}
}
@include at-breakpoint($desktop) {
.logo {
@include span-columns(1, $desktop);
}
nav {
@include span-columns(11 omega, $desktop);
}
}
这是结果:http: //jsfiddle.net/jmdcp/1/
更改浏览器宽度时,列不会调整大小。他们保持默认比率(span-columns(4)和span-columns(2 omega),即使在平板电脑和桌面断点处也是如此。我真的不明白我做错了什么。