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

inline-block并不是导致元素能够通过设置margin-left回到上一行的原因 #4

Open
ghost opened this issue Mar 21, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 21, 2018

/*元素浮动后,display 变为 inline-block,所以后面的元素才可以通过 margin-left 负值来回到上一行*/

若不给wrapper设置float而设置inline-block,则navigation和extra不会回到上一行。感觉这个地方是float的一个特性,但是并不明白是什么特性。

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

0 participants