-
Notifications
You must be signed in to change notification settings - Fork 2
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
作业3中的问题:在Navigation和后面的内容之间多出很细(大概1px多)的一行空白 #14
Comments
在 |
我明白了 #nav{ float:left; clear:both; padding-top:10px; padding-bottom:10px; } |
因为 inline-block 之间会常常莫名其妙产生一个 4px 的 margin,参见:https://css-tricks.com/fighting-the-space-between-inline-block-elements/ 不过上面链接的办法(去掉空白符)只能解决 inline-block 和水平元素间的 4px margin,无法解决垂直元素间的间距。设置成 不过!一劳永逸的解决办法是把这些 inline-block 的父元素的 |
谢谢戍爷! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在Navigation和后面的内容之间多出很细(大概1px多)的一行空白,无法消除,即使把padding调成0也不行。
index.html
index.css
The text was updated successfully, but these errors were encountered: