效果图
代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.content-list {
display: flex;
}
.content-list-item {
display: flex;
position: relative;
flex: 1;
}
.inner {
width: 50%;
padding: 10px 20px;
background-color: orange;
}
.arrow {
display: flex;
justify-content: center;
align-items: center;
flex: 1;
/* background-color: pink; */
padding-left: 10px;
}
.arrow-level {
width: 50%;
border: 10px solid red;
}
.arrow-triangle {
border: 10px solid transparent;
border-left-color: red;
}
</style>
</head>
<body>
<div class="content-list">
<div class="content-list-item">
<div class="inner">1</div>
<div class="arrow">
<div class="arrow-level"></div>
<div class="arrow-triangle"></div>
</div>
</div>
<div class="content-list-item">
<div class="inner">2</div>
<div class="arrow">
<div class="arrow-level"></div>
<div class="arrow-triangle"></div>
</div>
</div>
<div class="content-list-item">
<div class="inner">3</div>
<div class="arrow">
<div class="arrow-level"></div>
<div class="arrow-triangle"></div>
</div>
</div>
<div class="content-list-item">
<div class="inner">4</div>
<div class="arrow">
<div class="arrow-level"></div>
<div class="arrow-triangle"></div>
</div>
</div>
<div class="content-list-item">
<div class="inner">5</div>
<!-- <div class="arrow">
<div class="arrow-level"></div>
<div class="arrow-triangle"></div>
</div> -->
</div>
</div>
</body>
</html>