作者:jajajaja幸福_348 | 来源:互联网 | 2023-05-18 21:06
This question already has an answer here:
这个问题已经有了答案:
- Sass .scss: Nesting and multiple classes? 2 answers
- Sass .scss:嵌套和多个类?2答案
How can I use the :before and :after pseudo-element selectors following the syntax of Sass or, alternatively, SCSS? Like this:
如何使用:before和:after伪元素选择器,遵循Sass的语法,或者使用SCSS?是这样的:
p
margin: 2em auto
> a
color: red
:before
content: ""
:after
content: "* * *"
Of course, the above fails.
当然,上述方法并不奏效。
1 个解决方案