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
[css] 第45天 你知道的等高布局有多少种?写出来 #170
Comments
现在肯定是flex咯 |
flex ; .wrap > * { height: 100%; } |
display: flex;
align-items: stretch;
.box,.box2{
float: left;
width: 100px;
}
.box {
background: #cccccc;
height: 300px;
}
.box2 {
background: #306eff;
padding-bottom: 99999px;
margin-bottom: -99999px;
} |
table 很适合的。 |
使用浮动:padding-bottom 9999px margin-bottom -9999px互相抵消,父级清除浮动,即子元素最高的高度就是父盒子最高的高度 |
|
var a=1; |
第45天 你知道的等高布局有多少种?写出来
The text was updated successfully, but these errors were encountered: