// scss混入器
@mixin flex_style($justify:flex-start,$align:center){ //这里可以传参,并且设置了默认值
display: flex;
justify-content: $justify;
align-items: $align;
//使用
.POI_container{
width: 266px;
height: 102px;
@include flex_style;
.POI_icon{
width: 102px;
height: 100%;
background-size: cover;
}
}
}```
scss使用混入
最新推荐文章于 2024-05-13 19:18:45 发布