Are we able to add a Hover effect on a element which is not a child element of another element using LESS.?

后端 未结 0 443
执念已碎
执念已碎 2021-01-02 11:17

HTML:


CSS/LESS:

p {
color:red;
}
span:hover ~ p {
color:green;
}
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题