常用清除浮动样式
2016-05-05 23:37
417 查看
.clearfix::before,
.clearfix::after{
content: ".";
display: block;
height: 0;
line-height: 0;
visibility: hidden;
clear: both;
}
.clearfix {
*zoom: 1; /*IE/7/6*/
}
.clearfix::after{
content: ".";
display: block;
height: 0;
line-height: 0;
visibility: hidden;
clear: both;
}
.clearfix {
*zoom: 1; /*IE/7/6*/
}
相关文章推荐
- css overfloat:auto清除float 自动撑开
- css全局代码
- css给父盒子加display:inline实现子盒子自动撑开 实现子盒子和父盒子都浮动
- Qt利用QGraphicsScene编写Word排版工具导出PDF
- css父盒子没有高度让子盒子撑开 且子盒子有浮动 清除浮动
- 样式表笔记
- 关于CSS中float的两点心得以及清除浮动的总结
- css3动画学习资料整理
- 带你了解CSS开发中的10个不要
- css position relative obsolution
- 【转】CSS选择器笔记
- CSS 的优先级机制
- HTML加入CSS
- 文本框字母小写即时转大写
- CSS3:color
- CSS3 border-image详解
- HTML&CSS——琐碎的知识点(2)
- HTML&CSS——琐碎的知识点(1)
- CSS 实现:文字水平垂直居中
- CSS教程之div垂直居中的多种方法