科技微讯

深入理解 Flexbox

An Interactive Guide to Flexbox

这篇文章较为深入地解释了 Flexbox 的工作模式和使用方法,文章提到了几个我不太熟悉的知识点:

In a Flex row, flex-basis does the same thing as width. In a Flex column, flex-basis does the same thing as height. It's like width or height, but pegged to the primary axis, like everything else. It allows us to set the hypothetical size of an element in the primary-axis direction, regardless of whether that's horizontal or vertical.

align-items-vs-justify-content

总结以下几个容易混淆的属性:


相关笔记:

thumbsup0
thumbsdown0
暂无评论