[html] 第630天 实现两列等宽布局的方式有哪些?
Opened this issue · 4 comments
haizhilin2013 commented
GeassAthena commented
1.flex实现:
.parent {
display: flex;
}
.child {
flex: 1;
width: 50%;
}
2.float实现(但是要注意清除浮动):
.child {
float: left;
width: 50%;
}
liurubin commented
GeJJ commented
1.绝对定位
wu529778790 commented
.parent {
display: flex;
}
.child {
flex: 1;
}