clear-clearfix

 clear: both;清除两侧中最大影响的那侧
 
left/right
 
完美解决高度塌陷或者外边距重叠
.clearfix::after,
        .clearfix::before
        {
            content: '';
            display: table;
        clear: both;
        }
posted @ 2021-02-18 23:51  俗气小博  阅读(89)  评论(0)    收藏  举报