Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

看不懂为什么要用clearfix这个class #13

Open
Thomas-Lei opened this issue May 2, 2019 · 0 comments
Open

看不懂为什么要用clearfix这个class #13

Thomas-Lei opened this issue May 2, 2019 · 0 comments

Comments

@Thomas-Lei
Copy link

我按照例子做的没有那根分割线。查了代码发现是因为这里的height设为0造成的。不知道这个css类是用来干嘛的。谢谢。
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant