您好,欢迎来到步遥情感网。
搜索
您的当前位置:首页css3实现锯齿边框(用于优惠券或邮票等)

css3实现锯齿边框(用于优惠券或邮票等)

来源:步遥情感网

<div class="sawtooth-bor">

<div class="pt10 bor_r_dashed clearfix pr10 pb8 flex-item pl10 bg-cffb937">

<h3 class="fs36">&yen;50</h3>

<div class="fs12 lh18">满498使用</div>

<div class="fs12 lh18">有效期2018.03.16-2018.05.31</div>

</div>

<div class="textc flex-align-self w102 bg-cffb937 lhh90 mr5">立即领取</div>

</div>

 

 

css

 

.sawtooth-bor{

display: flex;

padding-left: 5px;

color: #fff;

box-sizing: border-box;

background: radial-gradient(transparent 0, transparent 4px, #ffb937 4px);

background-size: 15px 14px;

background-position: 8px 0px;

background-color: #fff;

}

.discount{

border-right: 1px dashed #f5f5f5;

padding: 10px;

flex: 1;

box-sizing: border-box;

background-color: #ffb937;

}

.receive{

text-align: center;

width: 102px;

line-height: 90px;

height: 90px;

box-sizing: border-box;

margin-right: 5px;

background-color: #ffb937;

}

 

效果:

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- obuygou.com 版权所有 赣ICP备2024042798号-5

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务