jAIBot
Results
1
comments of
jAIBot
> flex-basis用于在flex布局时候给定项目的一个初始值, 默认情况下是auto,也就是说根据容器宽度去自动计算,width是给定项目固定宽度。 > > 1. 当flex布局的主轴是水平方向即flex-direction: row;那么flex-basis设定的就是初始宽度,如果同时存在width,width会覆盖flex-basis属性 > 2. 当flex布局的主轴是垂直方向即flex-direction: column;那么flex-basis设定的就是初始高度,如果同时存在height,width会覆盖flex-basis属性; > [demo示例](https://stackblitz.com/edit/web-platform-rprew4?file=styles.css,index.html) 说反了,flex-basis优先级更高 Note: In case both flex-basis (other than auto) and width (or height in case of...