.father{
width: 100%;
height: 200px;
background: red;
display: flex;
flex-direction: row;
justify-content: space-between;
}
space-between设置的是子控件左中右分布,center可以设置子空间居中显示
以上是标签居中的几种常用方式,还会完善。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)