当我写作时,在SASS:
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic);
我收到此错误:
Error: Invalid CSS after "...,800,800italic)": expected media query list, was ";"
但我没有任何媒体查询。我该如何解决这个错误?
答案 0 :(得分:2)
您是否尝试将网址包装在引号中?似乎它试图将部分URL解析为css。
url('https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic');
答案 1 :(得分:0)
您的导入必须在引号中!像这样:
@import url(" http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic");
您可以在以下位置了解有关导入的详情:http://sass-lang.com/guide"导入"。
希望有所帮助!