flex为1时没有自适应宽度

.box
	.box_a 盒子a
	.box_b 盒子b
1
2
3
.box {
	display: flex;
	width: 400px;
	height: 100px;
	
	&_a {
		width: 40px;
		background-color: gold;
	}
	
	&_b {
		flex: 1;
		background-color: blueviolet;
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

demo

Last Updated:5/25/2024, 2:23:06 AM