彈性佈局學習,小發現總結

學習彈性佈局時,發現的小細節,整理如下 說明:當父類容器使用 display:flex(彈性佈局)時,子元素使用width和height設置大小,父類容器使用 justify-content:flex-start| flex-end | center | space-between | space-around 設置子元素在主軸(縱軸)方向上的對齊方式,子元素不會佔滿父容器的高(height)。
相關文章
相關標籤/搜索