Pick the key flex properties and immediately get the matching display:flex CSS with a live preview of one, two and three items.
| 屬性 | 常用取值 | 說明 |
|---|---|---|
| flex-direction | row / column / row-reverse / column-reverse | 主軸方向 |
| justify-content | flex-start / center / flex-end / space-between / space-around / space-evenly | 主軸對齊 |
| align-items | stretch / flex-start / center / flex-end / baseline | 交叉軸對齊 |
| flex-wrap | nowrap / wrap / wrap-reverse | 是否換行 |
| gap | 任意長度(如 12px) | 專案間距 |
提示:要讓單個專案在交叉軸居中可用 align-self;要控制專案伸縮用 flex: 1 或 flex-grow/shrink/basis。