Skip to content

Rows with Flexbox · ⁨用 Flexbox 排成一行⁩

English

Putting boxes in a row

  • By default, boxes stack downward. Often you want them side by side.
  • Flexbox is the easy way to do that.
  • Put display: flex; on the container — the box that holds the others — and its children line up in a row.
中文

把盒子排成一行

  • 默认情况下,盒子是往下叠的。但你常常想让它们并排。
  • **Flexbox(弹性盒)**是做这件事最简单的办法。
  • 把 display: flex; 写在容器上 —— 也就是装着其他盒子的那个盒子 —— 它的子元素就会排成一行。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩