Home  >  Article  >  Web Front-end  >  css 父div高度为0_html/css_WEB-ITnose

css 父div高度为0_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:131251browse

当css 中父类div 高度为为时,可能是子类div 元素用了float,没有加clear属性。

.clear  {

  1. clear: both;
  2. font-size: 0;
  3. line-height: 0;
  4. height: 0;
  5. visibility: visible;

}


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