我想将 & (指一个类)与标签结合使用。像这个例子:
.back {
text-transform: uppercase;
text-decoration: none;
font-weight: 700;
color: blue;
&:hover {
color: red;
}
}
我只想将悬停用于 a-tags。以下是不可能的
a&:hover {
color: red;
}
有人知道吗?
我想将 & (指一个类)与标签结合使用。像这个例子:
.back {
text-transform: uppercase;
text-decoration: none;
font-weight: 700;
color: blue;
&:hover {
color: red;
}
}
我只想将悬停用于 a-tags。以下是不可能的
a&:hover {
color: red;
}
有人知道吗?