Skip to content

Commit

Permalink
zh-cn: correct the description in CSS float property (#24780)
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <yin199909@aliyun.com>
  • Loading branch information
Tmaof and yin1999 authored Nov 29, 2024
1 parent 304f680 commit e1c0b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/zh-cn/web/css/float/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ float: unset;

### 浮动元素是如何定位的

正如我们前面提到的那样,当一个元素浮动之后,它会被移出正常的文档流,然后向左或者向右平移,一直平移直到碰到了所处的容器的边框,或者碰到**另外一个浮动的元素**
正如我们前面提到的那样,当一个元素浮动之后,它会被移出正常的文档流,然后向左或者向右平移,一直平移直到碰到了所处盒子的边界,或者碰到**另外一个浮动的元素**

在下面的图片中,有三个红色的正方形。其中有两个向左浮动,一个向右浮动。要注意到第二个向左浮动的正方形被放在第一个向左浮动的正方形的右边。如果还有更多的正方形这样浮动,它们会继续向右堆放,直到填满容器一整行,之后换行至下一行。

Expand Down

0 comments on commit e1c0b41

Please sign in to comment.