Skip to content

Width and centering · ⁨宽度与居中⁩

English

Width

  • By default, a block box is as wide as the page.
  • width: 300px; makes it a fixed width instead.
  • max-width: 600px; is gentler — at most this wide, but shrink on small screens.
中文

宽度

  • 默认情况下,块级盒子会和页面一样宽。
  • width: 300px; 让它改成固定宽度。
  • max-width: 600px; 更温和 —— 最多这么宽,屏幕小的时候会自动缩小。

Handout

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

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