/* 清除浮动 */ .clearfix::after { content: ''; display: block; clear: both; height: 0; line-height: 0; visibility: hidden; font-size: 0; } .clearfix { *zoom: 1; }
CSS清除浮动
原文:https://www.cnblogs.com/zjh-study/p/10668750.html