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

实现最小高度的设置 #39

Closed
Seasons123 opened this issue Jul 20, 2017 · 0 comments
Closed

实现最小高度的设置 #39

Seasons123 opened this issue Jul 20, 2017 · 0 comments

Comments

@Seasons123
Copy link
Owner

Seasons123 commented Jul 20, 2017

这个方法很简单:

min-height: 200px;
height: auto !important;
height: 200px;

上面的代码就轻松的帮我们实现了跨浏览器的最小高度设置问题。
height:auto !important是高度自适应,主要的是,!important只是对于ie6不认识而已,其他浏览器都是以这个为最高的优先级,执行这个,火狐、ie6会无视这个。

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