SASS错误:“"之后的CSS无效预期的伪类或伪元素 [英] SASS Error : Invalid CSS after " expected pseudoclass or pseudoelement "
本文介绍了SASS错误:“"之后的CSS无效预期的伪类或伪元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我今天正在尝试新的东西。SASS对我来说是全新的。谁能告诉我是什么原因导致此错误?
I am trying something new today.. SASS is all new for me. Can anyone please tell me what cause this error?
/*
Error: Invalid CSS after " margin:": expected pseudoclass or pseudoelement, was "0px"
on line 5 of /Users/kishorechandra/S-ERP/sass/styles.scss
1: @import "compass";
2: @import "partials/variables";
3:
4: .ui.menu
5: margin:0px
6: background: rgba(255, 255, 255, 0)
7: font-family: 'Roboto Slab', serif
8:
9: .ui.icon.menu .active.item
10: color: #FFB300
Backtrace:
/Users/kishorechandra/S-ERP/sass/styles.scss:5
推荐答案
在property:之后使用空格,这样编译器就不会再感到困惑了。因此,将 margin:0px
替换为 margin:0px
。并乐于学习Sass。
Use space after property: , then the compiler won't get confused anymore. so replace margin:0px
with margin: 0px
. And have fun learning Sass.
这篇关于SASS错误:“"之后的CSS无效预期的伪类或伪元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文