【发布时间】:2013-09-23 23:42:33
【问题描述】:
我找到了 susy, media queries, and 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).
}
我是否遗漏了一些明显的语法错误?
【问题讨论】:
标签: internet-explorer susy-compass fallback