一直不太明白bootstrap中.clearfix的作用,在这里发现了答案,http://css-tricks.com/all-about-floats/
?
.clearfix:before,
.clearfix:after {
? display: table;
? content: " ";
}
.clearfix:after {
? clear: both;
}
日期:2014-05-16 浏览次数:20614 次
一直不太明白bootstrap中.clearfix的作用,在这里发现了答案,http://css-tricks.com/all-about-floats/
?
.clearfix:before,
.clearfix:after {
? display: table;
? content: " ";
}
.clearfix:after {
? clear: both;
}