需要把width设置为0
.item{
height: 100%;
display: flex;
align-content: center;
align-items: center;
justify-content: center;
flex-direction: row;
flex: 1;
width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
需要把width设置为0
.item{
height: 100%;
display: flex;
align-content: center;
align-items: center;
justify-content: center;
flex-direction: row;
flex: 1;
width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}