有什么我们只能通过 SASS 而不能通过 css 实现的吗?

Is there anything that we can only achieve with SASS not with css?

我们可以使用sass变量来存储一些样式,我们可以通过sass嵌套。是的,他们很好 但是我们可以通过普通的css3来实现吗?我们可以使用 类 和 CSS 选择器来代替嵌套。 sass 中有什么我们只能通过这样的 sass 实现的吗? 我很想知道优点谢谢。

mixins、循环、运算符、导入、模块化 sass 中有很多功能使其功能强大。

也有陷阱,重叠规则和继承。如果写得不好,那么 10kb 的代码很容易翻倍到 20。

Is there anything in sass that we can only achieve via sass?

由于SASS编译成CSS,根据定义,没有什么只能通过SASS实现的。

SASS 只是 CSS.

之上的一层厚重的语法糖