hover内部指定子类的样式
如下图:想要实现的是鼠标hover在外部容器上,其子元素变化不同的样式。

上代码:(css的hover内部还可以进行写选择器来写对应的子元素样式)
.ant-steps-item-container {// 外部容器
&:hover {
.ant-steps-item-icon {// 整个圆圈⭕️
background-color: #1890ff;
transition: all 0.3s;
.ant-steps-icon {// 数字2、3
color: #fff !important;
transition: all 0.3s;
}
}
}
}