簡易的 CSS flex 排版切換器

justify-content

align-items (use align-self when one item)

align-content (容器需要給高度才有作用)


1
height:7.5
2
height:10
3
height:auto
4
height:auto
5
height:auto

並沒有用到 flex-direction 和 order 等等的屬性,所以沒有寫在裡面。

又或者,你可以在 codepen 操作:

See the Pen CSS flex by cj (@cjzopen) on CodePen.

希望這些簡易的按鈕能對你有幫助。

留言

這個網誌中的熱門文章

用CSS的 min() max() 與vw,設計有極限值的RWD響應式文字

10 steps、「ライブ会場を沸らせる、フロアを沸かす」ミーム動画の作り方 (Viggle AI)

運用資料層 dataLayer.push 建立 GTM 自訂事件