flex平分宽度

.parent{
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 100px;
	align-items: center;
}
.item{
	flex: 1;
	height: 20px;
}
<div class="parent"> 
	<div class="item">
		测试1
	</div>
	<div class="item">
		测试1
	</div>
	<div class="item">
		测试1
	</div>
	<div class="item">
		测试1
	</div>
</div>
©️2020 CSDN 皮肤主题: 游动-白 设计师:上身试试 返回首页