我需要像这样创建一个 css:
.word-remain+textarea{clear: before}
但我不能用 sass 写这个:
.word-remain+textarea
clear: before
我该怎么做?
最佳答案
您正在使用两级缩进。这可能就是它不起作用的原因。
.word-remain+textarea
clear: before
按预期编译
关于css - 如何在 sass 中嵌入 css,或者在 sass 中使用 + 选择器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8904941/