Skip to content

Instantly share code, notes, and snippets.

@sword-jin
Created October 7, 2015 17:21
Show Gist options
  • Select an option

  • Save sword-jin/8beaaf735e4381bfc767 to your computer and use it in GitHub Desktop.

Select an option

Save sword-jin/8beaaf735e4381bfc767 to your computer and use it in GitHub Desktop.
清楚浮动
.cf:before,
.cf:after {
content: ' ';
display: table;
}
.cf:after {
clear: both;
}
/* IE 6,7 */
.cf {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment