圆点加横线 分割线 标题线 CSS

2019-11-05  本文已影响0人  QinHaolei
  <view class='title'>
    <view class='hrLineLeft'>
      <view class='line'></view>
      <view class='circle'></view>
    </view>
    <view class='centerText'>标题名称</view>
    <view class='hrLineRight'>
      <view class='circle'></view>
      <view class='line'></view>
    </view>
  </view>
.hrLineLeft{
  display:flex;
  align-items:center;
}

.hrLineLeft .line{
  width: 115rpx;
  height: 3rpx;
  background: #3474cf;
}

.hrLineLeft .circle{
  width: 10rpx;
  height: 10rpx;
  background: #3474cf;
  border-radius: 50%;
}
 
.hrLineRight .line{
  width: 115rpx;
  height: 3rpx;
  background: #3474cf;
}

.hrLineRight .circle{
  width: 10rpx;
  height: 10rpx;
  background: #3474cf;
  border-radius: 50%;
}

.hrLineRight{
  display:flex;
  align-items:center;
}

.title{
  display: flex;
  justify-content: center;
}

.centerText{
  color: #3474cf;
  font-size: 32rpx;
  padding: 0 0.75rem;
}
上一篇 下一篇

猜你喜欢

热点阅读