布局前端

盒模型

Box Model

这张卡片设的是 320px,为什么加了内边距之后它就溢出容器了?

margin
border
padding
content

box-model · 图文示意

© 2026 Genisource Vibe · 知识点详情