Skip to content

Instantly share code, notes, and snippets.

@simplelife7
Created May 20, 2012 08:07
Show Gist options
  • Save simplelife7/2757272 to your computer and use it in GitHub Desktop.
Save simplelife7/2757272 to your computer and use it in GitHub Desktop.
【CSS】clearfix
/* 清除浮动 */
.fix:after {
visibility:hidden;
display:block;
font-size:0;
content:" ";
clear:both;
height:0;
}
.clearfix {
zoom:1; /* for IE6 IE7 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment