css实现礼券效果3
<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;
width: 100%;
overflow: hidden;
margin-top: 15px;
}
.coupon-left {
float: left;
text-align: left;
width: 60%;
font-size: 12px;
}
.coupon-right {
float: right;
text-align: center;
width: 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;
width: 16px;
height: 16px;
background: #fff;
position: absolute;
left: -9px;
border-radius: 50%;
}
.coupon-circle.top {
top: -8px;
}
.coupon-circle.bottom {
bottom: -10px;
}


浙公网安备 33010602011771号