1. 程式人生 > >猜你喜歡

猜你喜歡

在這裡插入圖片描述

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;
}