Problem:
The outer layer is father
inside 2 isson
Now inside the two son
should not be the same height, it should be out differently!
Just like this picture , to achieve this效果
the first method:
<div class="father">
<div class="left-son">Left Son</div>
<div class="right-son">Right Son</div>
</div>
.father{
width:1280px;
display:flex;
justify-content:center;
align-items:baseline; // `重点是这部分`
}
The second method:
<div class="father">
<div class="left-son">Left Son</div>
<div class="right-son">Right Son</div>
</div>
.father{
width:1280px;
display:flex;
justify-content:center;
}
.left-son{
align-self:baseline;
}