<view class="coupon"> <view class="coupon-left"> </view> <view class="coupon-right"> <view class="coupon-inner"> <i class="coupon-circle top"></i> <i class="coupon-circle bottom"></i> </view> </view> </view> .coupon { background: #d51d27; 100%; overflow: hidden; margin-top: 15px; } .coupon-left { float: left; text-align: left; 60%; font-size: 12px; } .coupon-right { float: right; text-align: center; 40%; font-size: 14px; } .coupon-inner { padding: 10px 15px; height: 75px; position: relative; } .coupon-right .coupon-inner { border-left: 2px dashed rgba(255, 255, 255, 0.5); } .coupon-circle { display: inline-block; 16px; height: 16px; background: #fff; position: absolute; left: -9px; border-radius: 50%; } .coupon-circle.top { top: -8px; } .coupon-circle.bottom { bottom: -10px; }