When flex-grow: 1 is set, one line of text displays redundant text and the ellipsis is invalid

 

Solution:

Add flex-grow: 1 to the element that occupies the remaining position, min-width: 0; the problem is solved

 

 

Guess you like

Origin blog.csdn.net/m0_50013284/article/details/125646145