css flex 容器中项目高度计算问题
展开全部
<div class="div1">
<div class="div2">
<span class="span1">sapn1</span>
</div>
<div class="div3">
<span class="span4">span4</span>
</div>
</div>
CSS
.div1{
display: flex;
width: 1000px;
height: 1200px;
flex-direction: column;
}
.div2{
flex-basis: 90%;
}
.div3{
height: 400px;
<div class="div2">
<span class="span1">sapn1</span>
</div>
<div class="div3">
<span class="span4">span4</span>
</div>
</div>
CSS
.div1{
display: flex;
width: 1000px;
height: 1200px;
flex-direction: column;
}
.div2{
flex-basis: 90%;
}
.div3{
height: 400px;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询