Home  >  Article  >  Web Front-end  >  css 垂直外边距重叠_html/css_WEB-ITnose

css 垂直外边距重叠_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:10:041383browse

元素的上外边距和其属于常规流中的第一个孩子的上外边距。

元素的下外边距和其属于常规流中的下一个兄弟的上外边距。

属于常规流中的最后一个孩子的下外边距和其父亲的下外边距,如果其父亲的高度计算值为auto。

元素的上、下外边距,如果该元素没有建立新的块级格式上下文,且 min-height 的计算值为零、height 的计算值为零或 auto、且没有属于常规流中的孩子。


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn