I am Oliver

Clearfix 的正确写法~

Clearfix 就是这么简单!

1
2
3
4
5
6
7
8
9
.clearfix:after,
.clearfix:before {
    display: table;
    content: " "
}

.clearfix:after {
    clear: both
}
打赏