答案 0 :(得分:0)
尝试以下方法:
CSS:
<style>
div{
border:1px solid black;
}
.row, .container{
border: none;
}
</style>
HTML:
<div class="container">
<div class="row">
<div class="col-sm-4">1</div>
<div class="col-sm-8">
<div class="row">
<div class="col-sm-6">2</div>
<div class="col-sm-6">3</div>
</div>
<div class="row">
<div class="col-sm-6">4</div>
<div class="col-sm-6">5</div>
</div>
</div>
</div>
</div>
答案 1 :(得分:0)
您必须相应地构建HTML。
试试这个代码片段。
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<div class="row">
<div class="col" style="border:1px solid #ccc">Left Column</div>
<div class="col">
<div class="row">
<div class="col" style="border:1px solid #ccc">Right Column Row 1</div>
</div>
<div class="row">
<div class="col" style="border:1px solid #ccc">Right Column Row 2</div>
</div>
</div>
</div>