请问,如何使用 scss 编译如下代码:
*html{
background: url(about:blank);
background-attachment: fixed;
}
编译报错提示如下内容:
自动编译(\sass\css\scss\base.scss)失败:
Error: Invalid CSS after "*": expected "{", was "html"
"html" may only be used at the beginning of a compound selector.
on line 16 of base.scss
Use --trace for backtrace.
是什么原因呢?还望赐教,谢谢!
“html”只能在复合选择器的开头使用 有*号了 就不要加html了