html代码
<h3 class="zhuli_harvest_h3"><span>我的奖学金</span></h3>
css代码
.zhuli_harvest_h3{
text-align: center;
}
.zhuli_harvest_h3>span{
display: block;
position: relative;
height: 1.55rem;
line-height: 1.55rem;
font-size: 1rem;
color: #fff;
}
.zhuli_harvest_h3>span:before, .zhuli_harvest_h3>span:after{
content: "";
position: absolute;
top: 0.75rem;
width: 4.7rem;
height: 1px;
background-color: #fff;
}
.zhuli_harvest_h3>span:before{
left: 0.7rem;
}
.zhuli_harvest_h3>span:after{
right: 0.7rem;
}