写电商菜单折行问题
解决办法,父div设置min-width:0即可
flex: 1;
min-width: 0;
w3c上面是这样说的
By default, flex items won’t shrink below their minimum content size (the length of the longest word or fixed-size element).
因为设置了white-space:nowrap,所以content没法收缩了,设置0后就有了固定尺寸就可以收缩了