解决方案 flex元素添加min-width:0属性 gird子元素添加min-width:0属性 参考文档 css - Ellipsis in flexbox container - Stack Overflow