父级flex,子级margin:auto
.parent_div{
display:flex;
width:100px;
height:100px;
}
.children_div{
background-color: red;
width:20px;
height:100px;
margin:auto;
}
父级flex,子级margin:auto
.parent_div{
display:flex;
width:100px;
height:100px;
}
.children_div{
background-color: red;
width:20px;
height:100px;
margin:auto;
}