使用float进行浮动布局 父元素:添加clearfix类,清除浮动bug子元素:float:left | rightclearfix类: .clerafix { content: ''; display:block; clear:both; }