关于flex元素超出父元素的解决方法 2021-03-03 本文已影响0人 lihao_李浩 子元素 flex:1; white-space: nowrap; 有可能超出父级。 解决方法是把子元素设置为max-width:0;就可以了;