In the case that the ancestor is an inline element, the containing block is the bounding box around the padding boxes of the first and the last inline boxes generated for that element.
在祖先是行内元素的情况下,包含块是由第一个和最后一个内联元素的内边距盒的包含盒构成。
The panel class sets the element's border to the size of the device box, adds 10 pixels of padding, and puts the background color and pinstripes on the page.
panel类将把元素的边界设为设备框的大小,添加10个像素的填充,并且设置页面的背景颜色和条纹。
Thick cotton padding embedded the precious vase in its box.
厚厚的棉花填塞物紧紧围住装在盒子中的贵重花瓶。
To achieve this effect, designers often create a container with a transparent PNG-image as background and place the content inside the container - with equidistant padding on all sides of the box.
要达到这个效果,设计者们通常会创建一个容器,用一张透明的PNG图像作为其背景,并把内容放在这个容器中。
Opposite horizontal margin constraint. A left float box that has another left float box to its left may not have its right margin edge to the right of the containing block's right padding edge.
对立水平边框限制:如果一个左浮动框的左边还有另一个左浮动框,那么这个左浮动框的右marginedge不能在此包含块的右padding edge 之右。
Its height (top padding edge) is the height of the tallest line-box.
其高度(上paddingedge)取最高的那个line - box的高度。
Line-box vertical constraint. A left float box's top margin edge may not be higher than the top padding edge of any line-box containing a box generated by an earlier element in the source document.
line - box垂直限制:左浮动框的上marginedge不能高于任何包含由源文档中前一元素生成的框的line - box的上padding edge。
If the float is nested inside the second block box, and that container box has no borders or padding, it appears just the same as when the float is between the block boxes.
如果浮动被嵌套在第二个块盒中,并且该容器盒没有边框盒填充,浮动呈现样式,与浮动被放置在块盒之间是相同的。
The width of the box containing the buttons is the total width of the buttons plus the padding between them.
分组的宽度包含按钮间的填充空间和按钮的宽度总和。
The width of the box containing the buttons is the total width of the buttons plus the padding between them.
分组的宽度包含按钮间的填充空间和按钮的宽度总和。
应用推荐