见上面的图片,这是我的CSS:
.activity {
width: 70%;
margin: 0 auto;
}
.activity .head {
margin-top: 3%;
text-align: center;
}
.activity .body {
margin-top: 3%;
}
为什么都直列块不能在同一行?
<div class="body" style="background-color:red">
<div style="background-color:green; display:inline-block; width:50%">
</div>
<div style="background-color:blue; display:inline-block; width:49.6%">
</div>
</div>
当我将第二块宽度设置为49.6%
时,为什么它在下一行开始?
请具体谈谈您的问题!你想从你的图像中获得标记吗? –
什么问题?告诉我们,所以我们可以帮助您解决它! :) – Cullub
我编辑帖子添加它 - 现在看他的评论 – Cullub