答案 0 :(得分:0)
您可以尝试这样的事情: 宽度:calc(50% - 2px)用于否定使用的2 px边框;
.wrap{
display:flex;
flex-wrap:wrap;
background-color:pink;
}
.box{
width:100%;
height:100px;
background-color: cyan;
border: 1px black solid;
}
.box1{
width:calc(50% - 2px);
height:100px;
background-color: green;
border: 1px black solid;
}

<div class="wrap">
<div class="box"></div>
<div class="box1"></div>
<div class="box1"></div>
</div>
&#13;