微信小程序清除浮动

soilman的世界
2020-05-19 / 0 评论 / 208 阅读 / 正在检测是否收录...

以下已亲测可用
一、前端常用清除

.clear{
clear:both;
height:0;
overflow:hidden;

}

二、进阶清除

.clearfix:after {

content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

三、无障碍清除

.clearfix {

overflow: auto;
_height: 1%;
}

尊重版权,参考网站:http://www.cnblogs.com/androidxufeng/p/6485392.html

0

评论 (0)

取消