div中元素float之后不能自动撑大,添加css样式

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
  overflow:hidden;
    visibility: hidden;
}
posted @ 2020-06-30 10:13  青竹玉简  阅读(201)  评论(0编辑  收藏  举报