Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/css/box.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@

从上图可以看到:

- 盒子总宽度 = width + padding + border + margin;
- 盒子总宽度 = width + padding + border;

- 盒子总高度 = height + padding + border + margin
- 盒子总高度 = height + padding + border;

也就是,`width/height` 只是内容高度,不包含 `padding` 和 `border `值

Expand All @@ -75,9 +75,9 @@

从上图可以看到:

- 盒子总宽度 = width + margin;
- 盒子总宽度 = width;

- 盒子总高度 = height + margin;
- 盒子总高度 = height;

也就是,`width/height` 包含了 `padding `和 `border `值

Expand Down