search

Home  >  Q&A  >  body text

ruby - Sass编译scss时报错

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);
}

上网找不到这个原因的解决办法,来这里提问一下看有没有大神知道该怎么解决

高洛峰高洛峰2804 days ago1100

reply all(0)I'll reply

No reply
  • Cancelreply