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

贝壳金控-- 清除浮动 #3

Open
steven-adon opened this issue Jul 20, 2017 · 0 comments
Open

贝壳金控-- 清除浮动 #3

steven-adon opened this issue Jul 20, 2017 · 0 comments

Comments

@steven-adon
Copy link
Owner

  1. 添加新的元素,应用clear:both
  2. 父级div定义 overflow: auto
  3. 据说是最高大上的方法 :after 方法:(注意:作用于浮动元素的父亲)
 .outer {zoom:1;}    /*==for IE6/7 Maxthon2==*/
 .outer :after {clear:both;content:'.';display:block;width: 0;height: 0;visibility:hidden;}/*==for FF/chrome/opera/IE8==*/
  1. 给父元素也加上浮动
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