The padding edge defines the edges of the containing block.
paddingedge定义了此包含块的边缘。
Optimum vertical constraint. A float box must be placed as high as possible within its containing block.
最佳垂直限制:浮动框必须被置于此包含块内尽量高的地方。
Optimum horizontal constraint. A left float box must be put as far to the left as possible within its containing block.
最佳水平限制:浮动框必须被置于此包含块内向左尽量远的地方。
A line-box is an imaginary rectangle that contains all the inline boxes that make up a line in the containing block-level element.
line - box是一个假想的矩形框,包含在此块级包含元素内连成一线的所有inline box。
Containing block vertical constraint. A left float box's top margin edge may not be higher than the containing block's top padding edge.
包含块的垂直限制:左浮动框的上marginedge不能高于包含块的上padding edge。
Otherwise, the containing block is formed by the padding edge of the ancestor.
否则,包含块是由祖先的内边距边缘构成。
In CSS 2.1, if the inline element is split across multiple lines, the containing block is undefined.
在CSS2.1中,假如行内元素被拆分成很多行,那么包含块是undefined。
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.
浮动的框不在流内,它会尽量去靠左(右),直到外边缘碰到包含框的边缘或是另一个浮动框的边缘。
Fixed positioning is a subcategory of absolute positioning. The only difference is that for a fixed positioned box, the containing block is established by the viewport.
固定定位是绝对定位的一种特殊情况,即他的包含框永远都是视口。
For other elements, if the element's position is' relative 'or' static ', the containing block is formed by the content edge of the nearest block container ancestor box.
对于其他元素来说,假如元素的定位方式是相对定位或者static定位,那么它的包含块是由最近的块级祖先元素的内容边缘构成。
For other elements, if the element's position is' relative 'or' static ', the containing block is formed by the content edge of the nearest block container ancestor box.
对于其他元素来说,假如元素的定位方式是相对定位或者static定位,那么它的包含块是由最近的块级祖先元素的内容边缘构成。
应用推荐