<div class="line">划重点</div>
.line{
display: flex;
align-items: center;
justify-content: center;
color:#999;
}
.line::before,
.line::after{
content:'';
height: 1px;
width: 100px;
background-color: #eee;
margin: 0 20px;
}
画法还有很多,用伪类元素就对了。掂过碌蔗~