Skip to content

Commit

Permalink
Update files/zh-cn/web/css/containing_block/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <[email protected]>
  • Loading branch information
YieldRay and yin1999 authored Nov 5, 2023
1 parent 8114042 commit fc3c028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/containing_block/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ slug: Web/CSS/Containing_block
## 根据包含块计算百分值

如上所述,当某些属性被赋予一个百分比值时,它的计算值取决于这个元素的包含块。以这种方式工作的属性包括盒模型属性和偏移属性
如上所述,当某些属性被赋予一个百分比值时,它的计算值取决于这个元素的包含块。以这种方式工作的属性包括**盒模型属性****偏移属性**

1. {{cssxref("height")}}、{{cssxref("top")}} 及 {{cssxref("bottom")}} 属性根据包含块的 `height` 计算百分比值。
2. {{cssxref("width")}}、{{cssxref("left")}}、{{cssxref("right")}}、{{cssxref("padding")}} 和 {{cssxref("margin")}} 属性根据包含块的 `width` 计算百分比值。
Expand Down

0 comments on commit fc3c028

Please sign in to comment.