css清除浮动
2020-01-15 07:29
148 查看
1.在浮动的父元素下面插入元素 //box为父元素 .box:after{ content: ''; height:0px; display: block; overflow: hidden; clear: both; visibility: hidden; } 2.父元素设置display:inline-block 3.父元素设置over-flow:hidden
- 点赞
- 收藏
- 分享
- 文章举报