Rumah > Soal Jawab > teks badan
Sass编译scss时报错,
报错代码:
Error: Invalid CSS after "temp.scss": expected "{", was ""
on line 1 of C:\Users\Administrator\temp\temp.scss
Use --trace for backtrace.
SCSS代码:
$fontSize: 12px;
@function count($n){
@return $n*2
}
body{
font-size:$fontSize;
width: count(200px);
}
上网找不到这个原因的解决办法,来这里提问一下看有没有大神知道该怎么解决