会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
xiaoYu&
博客园
首页
新随笔
联系
管理
2020年3月20日
css清除浮动
摘要: 在进行谁不排列布局时,经常会使用元素的float属性,从而会使父容器高度无法自适应,这时候,只需要添加一个带有clear:both属性的元素就能清除浮动带来的高度问题: <div class="container"> <div class="item"></div> <div class="item
阅读全文
posted @ 2020-03-20 09:06 xiaoYu&
阅读(109)
评论(0)
推荐(0)
编辑
公告