BFC的原理与使用clearboth

132 阅读1分钟

原文: www.cnblogs.com/dolphinX/p/…

  1. 在子元素最后一个后面加 div设样式clear:left
  2. 在父元素设置 overflow:hidden