解决办法:
父盒子中加入width:0
.parent {
flex-grow: 1;
width: 0;
}
子元素
.child{
text-overflow: ellipsis;
overflow-x: hidden;
white-space: nowrap;
}
解决办法:
父盒子中加入width:0
.parent {
flex-grow: 1;
width: 0;
}
子元素
.child{
text-overflow: ellipsis;
overflow-x: hidden;
white-space: nowrap;
}