Skip to content

Commit

Permalink
zh-CN: remove some note (#23498)
Browse files Browse the repository at this point in the history
  • Loading branch information
PassionPenguin authored Sep 10, 2024
1 parent 90c5069 commit fadbbac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions files/zh-cn/web/css/box-sizing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ box-sizing 属性可以被用来调整这些表现:
- `content-box` 是默认值。如果你设置一个元素的宽为 100px,那么这个元素的内容区会有 100px 宽,并且任何边框和内边距的宽度都会被增加到最后绘制出来的元素宽度中。
- `border-box` 告诉浏览器:你想要设置的边框和内边距的值是包含在 width 内的。也就是说,如果你将一个元素的 width 设为 100px,那么这 100px 会包含它的 border 和 padding,内容区的实际宽度是 width 减去 (border + padding) 的值。大多数情况下,这使得我们更容易地设定一个元素的宽高。

**译者注:** `border-box`不包含`margin`

> [!NOTE]
> 对于新的 web 站点,你可能希望首先将 box-sizing 设置为 border-box,如下所示:
>
Expand Down

0 comments on commit fadbbac

Please sign in to comment.