文章转载自 张鑫旭-鑫空间-鑫生活 http://www.zhangxinxu.com/
原文链接:https://www.zhangxinxu.com/wordpress/2019/12/css-flex-deep/
原文摘要:
CSS flex属性属性还是很难理解的,但是flex布局要想玩得溜溜溜,这一关必须得过,来来来,一起看看究竟是什么意思,如何更容易理解与记忆。
flex属性是一种简写
首先flex
属性是flex-grow
,flex-shrink
和flex-basis
的缩写。
等下,已经晕了!
flex-grow
是谁?flex-shrink
是哪位?flex-basis
又是何人?
稍安稍安,这3个CSS属性我们后面会详细展开,这里就先三言两句稍微提一下他们的作用。
这flex布局就好像是有钱人家分家产。