我找到了主题susy、媒体查询和 lt IE9,其中声明您可以将“回退类”添加到变量中,以便在使用该变量的所有指定断点处应用它。
所以我改变了我的变量:
$desk: 58em 12;
到
$desk: 58em 12 lt-ie9;
但这会导致如下错误:
Syntax error: Base-level rules cannot contain the parent-se1ector-referencing character ' & ' .
on line 91 of C: /Ruby200/lib/ruby/gems/2.0.0/gems/susy-1.0.9/sass/susy/_media.scss, in ‘ Gcontent '
from line 15 of C: /Ruby200/lib/ruby/gems/2.0.0/gems/susy-1.0.9/sass/susy/_media.scss, in ‘ layout '
from line 54 of C: /Ruby200/lib/ruby/gems/2.0.0/gems/susy-1.0.9/sass/susy/_media.scss, in ‘ at-breakpoint '
from line 87 of C: /localpath/sass/layouts/project/site.layout.scss
最后一行是第一次调用媒体布局变量“$desk”的第一行。
@include at-breakpoint($desk) {
.l-header,
.l-main,
.l-footer,
.l-region--navigation {
@include set-container-width; // Reset only the container width (elements have already been declared as containers).
}
我错过了一些明显的语法错误吗?