1 .clearfix { 2 zoom: 1; 3 display: table; 4 width: 100%; 5 } 6 .clearfix:after { 7 content: " "; 8 display: block; 9 clear: both; 10 height: 0; 11 }
转载于:https://www.cnblogs.com/talentzemin/p/4513030.html
1 .clearfix { 2 zoom: 1; 3 display: table; 4 width: 100%; 5 } 6 .clearfix:after { 7 content: " "; 8 display: block; 9 clear: both; 10 height: 0; 11 }
转载于:https://www.cnblogs.com/talentzemin/p/4513030.html