Home  >  Article  >  Web Front-end  >  高度塌陷问题_html/css_WEB-ITnose

高度塌陷问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:34:291019browse













  • 1

  • 2

  • 3




父元素未设置高度和宽度的时候。那么它的高度就会塌缩为零,前提是它只包含浮动元素,解决高度塌陷的问题很简单,可以浮动父级元素、清除法等等,均可实现

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