答案 0 :(得分:0)
这样的东西似乎有效,你还需要弄清楚几件事(删除第一行,不同颜色,......)
.row {
width: 100%;
height: 20px;
margin-bottom: 10px;
background-color: green;
transform: translateY(10px) translateX(-5px);
position: relative;
}
.row:before {
content: "";
display: block;
position: absolute;
top: 50%;
right: 100%;
width: 5px;
height: 1px;
border-top: 1px solid red;
transform: translateY(-50%);
}
.container {
padding-left: 10px;
border-left: 1px solid red;
}

<div class="row"></div>
<div class="container">
<div class="row"></div>
<div class="row"></div>
<div class="container">
<div class="row"></div>
<div class="row"></div>
</div>
<div class="row"></div>
</div>
&#13;