当前位置:Gxlcms > html代码 > css父div高度为0_html/css_WEB-ITnose

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

时间:2021-07-01 10:21:17 帮助过:23人阅读

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

.clear {

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

}

人气教程排行