wxml
<view class="gift">
<view class="title">
<text> 纪念品列表</text>
</view>
</view>
wxss
.gift .title {
text-align: center;
display: block;
width: 100%;
margin-top: 20px;
margin-bottom: 20px;
font-weight: normal;
font-size: 15px;
position: relative;
}
.gift .title::before {
content: "――";
margin-right: 10px;
color: #777;
}
.gift .title::after {
content: "――";
margin-left: 10px;
color: #777;
}