“显示”CSS属性不是由SASS呈现的

“显示”CSS属性不是由SASS呈现的,sass,Sass,我正在使用Sass 3.1.20 test.sass: #hello width: 100px display:none background: red %>sass测试 #hello { width: 100px; background: red; } 为什么要跳过显示属性?SASS似乎对空白很挑剔。您在此处缺少一个空格: #hello width: 100px display: none ^ right here backgroun

我正在使用Sass 3.1.20

test.sass:

#hello
  width: 100px
  display:none 
  background: red
%>sass测试

#hello {
  width: 100px;
  background: red; }

为什么要跳过显示属性?

SASS似乎对空白很挑剔。您在此处缺少一个空格:

#hello
  width: 100px
  display: none
          ^ right here

  background: red

看起来SASS对空格很挑剔。您在此处缺少一个空格:

#hello
  width: 100px
  display: none
          ^ right here

  background: red

它很容易出错,因为通常css并不真正关心这一点。它很容易出错,因为通常css并不真正关心这一点