See the Pen flex 实现三色骰子 by hjoker (@hjoker) on CodePen.
flex:1 flex:1 = flex: 1 1 0%; flex:1在父元素尺寸不足的时候,会优先最小化内容尺寸。 …