编译Sass它说不一致的缩进

时间:2016-11-21 18:04:35

标签: css sass

我在main.sass中有这个:

24:     height: 444px
25:     background: linear-gradient(rgba(0,0,0, .7), rgba(0,0,0, .7))
26:     position: relative
27: 
28:     .hero_background
29:      bottom: 0
30:      left: 0
31:      overflow: hidden
32:      position: absolute
33:      right: 0
34:      top: 0

编译时,sass说:

/*
Error: Inconsistent indentation: "\t " was used for indentation, but the rest of the document was indented using 1 tab. on line 29 of 

有没有办法可以解决这个问题?

2 个答案:

答案 0 :(得分:0)

双重选项卡您的嵌套样式。它告诉你错误中的问题。

应该是这样的:

.hero_background{
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
}

答案 1 :(得分:0)

第29行及以后每行都有一个额外的空格