CSS卡券效果制作

<p class="coupon">
 <span>10000</span>SWT优惠券
</p>
.coupon {
  width: 300px;
  height: 100px;
  line-height: 100px;
  margin: 50px auto;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at right bottom, transparent 10px, #00BFFF 0) top right /50% 51px no-repeat,
  radial-gradient(circle at left bottom, transparent 10px, #00BFFF 0) top left / 50% 51px no-repeat,
  radial-gradient(circle at right top, transparent 10px, #00BFFF 0) bottom right / 50% 51px no-repeat,
  radial-gradient(circle at left top, transparent 10px, #00BFFF 0) bottom left / 50% 51px no-repeat;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, .2));
}
.coupon span {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  color: red;
  font-size: 50px;
  font-weight: 400;
}

 

10000SWT优惠券

上一篇:CSS背景属性


下一篇:当当网头部和尾部——CSS源码