gpt4 book ai didi

html - 内嵌 block 框不适合它们的容器

转载 作者:技术小花猫 更新时间:2023-10-29 11:54:02 27 4
gpt4 key购买 nike

<分区>

不确定我做错了什么,我认为通过添加边框框,它会整齐地适合这 4 个框。

http://jsfiddle.net/jzhang172/x3ftdx6n/

.ok{
width:300px;
background:red;
height:100px;
box-sizing:border-box;
}

.box{
display:inline-block;
box-sizing:border-box;
width:25%;
border:2px solid blue;
height:100%;
}
<div class="ok">
<div class="box">1</div>
<div class="box">2</div>
<div class="box">3</div>
<div class="box">4</div>

</div>

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com