最佳垂直限制:浮动框必须被置于此包含块内尽量高的地方。
Optimum vertical constraint. A float box must be placed as high as possible within its containing block.
这对第一个段落或在第一个段落内定义的浮动框没有任何影响。
This has no effect on the first paragraph or the float box defined within the first paragraph.
最佳水平限制:浮动框必须被置于此包含块内向左尽量远的地方。
Optimum horizontal constraint. A left float box must be put as far to the left as possible within its containing block.
位置优先原则:在判断浮动框位置时,最佳垂直限制优于最佳水平限制。
Position precedence rule. When resolving the float box position, the optimum vertical constraint takes precedence over the optimum horizontal constraint.
clear属性表明了一个元素的框的哪一侧或哪些侧不必与之前的浮动框相邻。
The clear property indicates which side or sides of an element's box may not be adjacent to an earlier float box.
包含块的垂直限制:左浮动框的上marginedge不能高于包含块的上padding edge。
Containing block vertical constraint. A left float box's top margin edge may not be higher than the containing block's top padding edge.
浮动的框不在流内,它会尽量去靠左(右),直到外边缘碰到包含框的边缘或是另一个浮动框的边缘。
A floated box is shifted to the left or right until its outer edge touches the containing block edge or the outer edge of another float.
none-不对框的位置应用任何与之前的被浮动元素相关的限制。
None - Apply no constraint on the box's position with respect to previous floated elements.
浮动属性指定了某个框应该向左侧还是向右侧浮动。
The float property specifies whether a box should float to the left or to the right.
图1展示了一个带有Close按钮的对话框,浮动于页面之上。
Figure 1 shows an AD box with a close button, sitting on top of a page.
图1展示了一个带有Close按钮的对话框,浮动于页面之上。
Figure 1 shows an AD box with a close button, sitting on top of a page.
应用推荐