scss中的&符号

在scss中有时可以看见这样的写法:

a{
 
 &:hover{

 }

}

经过编译生成的对应css的代码:

a{}
a:hover{}
posted @ 2022-02-09 23:50  隐形的喷火龙  阅读(835)  评论(0)    收藏  举报