2016-11-21 28 views
1

我有这个在我的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 

编译时,萨斯说:

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

有没有一种办法,我可以解决这个问题?

+0

什么是哪个元素或类应用的线路24,25和26,你不用{} – Geeky

+0

@Geeky包装你的代码当你使用SCSS时你使用了括号,但是如果你使用的是SASS,你不必使用括号或;。 –

+0

什么是行24,25和26为哪个元素/类是 – Geeky

回答

0

双击您的嵌套样式。它在错误中正确地告诉你问题。

应该是这样的:

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

线29日起对各行的额外空间