这里用一个flex简单方法居中对齐,span作为icon伪元素的容器
span[class*=" el-icon-"]{
display: flex;
justify-content: center;
align-items: center;
//假设容器宽高50px
width 50px
height 50px
}
这里用一个flex简单方法居中对齐,span作为icon伪元素的容器
span[class*=" el-icon-"]{
display: flex;
justify-content: center;
align-items: center;
//假设容器宽高50px
width 50px
height 50px
}