浮动闭合方案:clearfix

mac2022-06-30  26

1

.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden} .clearfix{*+height:1%;}

2

.clearfix{overflow:auto;_height:1%}

3

.clearfix{overflow:hidden;_zoom:1;}

 

转载于:https://www.cnblogs.com/DajiangDev/p/3525795.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)