【问题标题】:SASS - compile Error with pxSASS - 使用 px 编译错误 【发布时间】:2014-12-28 16:00:49 【问题描述】: 我不明白code pen 的编译错误 这里有什么问题,如何使它正确? SASS .box{ width: 400px; height: 100px; background: red; } 【问题讨论】: Sass and Compass weird css errors after install的可能重复 标签: css sass 【解决方案1】: 您需要将 CodePen 设置为使用 .scss 语法而不是 .sass 语法。如果你这样做,它会起作用。 .sass 语法与 CSS 不兼容。 【讨论】: