2021-02-03 09:07发布
/*
1.给父盒子架固定高度
*/
/* height: 200px; */
2.给父盒子加overflow:hidden
/* overflow: hidden; */
4.
.clearfix::before{
content: '';
/* 转化为块元素 */
display: block;
clear: both;
}
.clearfix::after{
最多设置5个标签!
/*
1.给父盒子架固定高度
*/
/* height: 200px; */
/*
2.给父盒子加overflow:hidden
*/
/* overflow: hidden; */
4.
.clearfix::before{
content: '';
/* 转化为块元素 */
display: block;
clear: both;
}
.clearfix::after{
content: '';
/* 转化为块元素 */
display: block;
clear: both;
}
一周热门 更多>