Skip to content

Instantly share code, notes, and snippets.

@QYG2297248353
Created September 30, 2022 17:32
Show Gist options
  • Select an option

  • Save QYG2297248353/8fed112eac3203f56bab8c2d0ab25d05 to your computer and use it in GitHub Desktop.

Select an option

Save QYG2297248353/8fed112eac3203f56bab8c2d0ab25d05 to your computer and use it in GitHub Desktop.
清除浮动 clearfix 采用样式清除浮动影响
.clearfix:after {
content: "";
display: block
height 0;
clear: both;
visibility: hidden;
}
/* IE6,7兼容样式 */
.clearfix {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment