【发布时间】:2020-07-13 20:19:12
【问题描述】:
这是 .sass 文件:
/* Welcome to Compass.
*
* ie.sass
*
* Use this file to write IE specific override styles.
*
* Import this file using the following HTML or equivalent:
* <!--[if IE]>
* <link rel="stylesheet" type="text/css"
* href="/stylesheets/ie.css" media="screen, projection" />
* <![endif]-->
*/
html {
font-size: 24px;
}
这里是考拉产生的错误:
/*
Error: Invalid CSS after "html ": expected selector, was "{"
on line 14 of /Users/johnlove/Sites/www.lovetoteach.dev/Web_Site_Storage/lovesongforever.com/coronavirus/Coronavirus_Support/sass_test/ie_test.sass
9: * <link rel="stylesheet" type="text/css"
10: * href="/stylesheets/ie.css" media="screen, projection" />
11: * <![endif]-->
12: *\/
13:
14: html {
15:
16: }
我已经确定所有属性都缩进一次。我还删除了{} 和尾随分号。
同样的错误!
为什么?
【问题讨论】:
标签: compass-sass