当前位置:   article > 正文

css实现优惠券的样式_css优惠券样式

css优惠券样式

像这样的优惠券怎么用css样式实现呢

优惠券

<view style="color: #888;margin-right: 20upx;">领券</view>
<view class="coupons_css">满100减20
	<view class="leftdot"></view>
	<view class="rightdot"></view>
</view>
<view class="coupons_css">8折
	<view class="leftdot"></view>
	<view class="rightdot"></view>
</view>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
.coupons_css{
	height: 36upx;
	position: relative;
	margin-right: 20upx;
	text-align: center;
	line-height: 36upx;
	padding: 0 14upx;
	border: 1upx solid #ff3d36;
	border-radius: 10upx;
	font-size: 22upx;
	color: #ff3d36;
}
.leftdot{
	position: absolute;
	top: 13upx;
	left: -3upx;
	width: 6upx;
	height: 10upx;
	border-top-right-radius: 20upx;
	border-bottom-right-radius: 20upx;
	border: 1upx solid #ff3d36;
	background-color: #fff;
	border-left: 0;
}
.rightdot{
	position: absolute;
	top: 13upx;
	right: -3upx;
	width: 6upx;
	height: 10upx;
	border-top-left-radius: 20upx;
	border-bottom-left-radius: 20upx;
	border: 1upx solid #ff3d36;
	background-color: #fff;
	border-right: 0;
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/950844
推荐阅读
相关标签
  

闽ICP备14008679号