1 /*
2 说明:不增加额外元素实现清除浮动( 闭合浮动元素 Clear Floats )
3 整理: CSS Mastery
4 */
5 .clearfix:after {
6 content: ".";
7 display: block;
8 height: 0;
9 clear: both;
10 visibility: hidden;
11 }
12 .clearfix {
13 display: inline-block;
14 }
15 /* Holly Hack Targets IE Win only \*/
16 * html .clearfix {
17 height: 1%;
18 }
19 .clearfix {
20 display: block;
21 }
22 /* End Holly Hack */
23
2 说明:不增加额外元素实现清除浮动( 闭合浮动元素 Clear Floats )
3 整理: CSS Mastery
4 */
5 .clearfix:after {
6 content: ".";
7 display: block;
8 height: 0;
9 clear: both;
10 visibility: hidden;
11 }
12 .clearfix {
13 display: inline-block;
14 }
15 /* Holly Hack Targets IE Win only \*/
16 * html .clearfix {
17 height: 1%;
18 }
19 .clearfix {
20 display: block;
21 }
22 /* End Holly Hack */
23
专注前端开发,分享&交流技术经验 by 付诸行动
Copyright © 2009-2010 分享前端开发技术博文、工作心得,技术交流
Gtalk: agikoo@gmail.com QQ交流群: 101232616
http://uecode.com/
Copyright © 2009-2010 分享前端开发技术博文、工作心得,技术交流
Gtalk: agikoo@gmail.com QQ交流群: 101232616
http://uecode.com/