css实现礼券效果2

时间:2023-03-09 16:09:49
css实现礼券效果2
<template>
<div class="quan clear">
<div class="quanleft">
<p class="ft">折扣券</p>
</div>
<div class="quanRight">
<p class="money">¥ </p>
<p class="tit">美味立享折扣券</p>
<p class="conts">无满额限制,立减折扣</p>
<p class="dates">有效期: 2018.8. - 2019.8.</p>
</div>
</div>
</template> <script>
export default {};
</script> <style>
.quan {
position: relative;
width: %;
height: 130px;
margin: % auto;
padding: 6px;
padding-right: ;
box-sizing: border-box;
background-color: #ff6347;
color: #fff;
/*左边的波浪*/
background-image: radial-gradient(#fff %, #ff6374 %);
background-size: 17px 17px;
background-position: -9px ;
background-repeat: repeat-y;
}
.clear::after {
content: "";
display: block;
clear: both;
} .quanLeft {
float: right;
width: %;
height: %;
padding: 10px;
box-sizing: border-box;
}
.quanRight {
position: absolute;
top: ;
right: ;
bottom: ;
box-sizing: border-box;
width: %;
padding: 12px;
text-align: center;
border-left: 1px dashed #ccc;
background-image: radial-gradient(#fff %, #ff6374 %);
background-size: 17px 17px;
background-position: % ;
background-position: calc(% + 9px) ;
background-repeat: repeat-y;
}
.money {
margin-bottom: 6px;
margin-right: 8px;
font-size: 26px;
font-weight: bold;
line-height: 1.6;
}
.tit {
font-size: 17px;
}
.conts {
font-size: 13px;
}
.dates {
font-size: 12px;
}
.ft {
display: inline-block;
margin: 40px;
}
</style>

css实现礼券效果2