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.
如果浮动被嵌套在第二个块盒中,并且该容器盒没有边框盒填充,浮动呈现样式,与浮动被放置在块盒之间是相同的。
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定位,那么它的包含块是由最近的块级祖先元素的内容边缘构成。
应用推荐