Created
September 30, 2022 17:32
-
-
Save QYG2297248353/8fed112eac3203f56bab8c2d0ab25d05 to your computer and use it in GitHub Desktop.
清除浮动 clearfix 采用样式清除浮动影响
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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