優惠券簡單css

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Examples</title> <meta name="description" content=""> <meta name="keywords" content=""> <link href="" rel="stylesheet"> </head> <body> <style> .box{ width: 400px; height: 100px; float: left; overflow: hidden; /*border: 1px solid #000;*/ position: relative; } .left{ background: #c7172c; border-top-left-radius: 10px; border-bottom-left-radius: 10px; height: 100px; float: left; width: 70%; box-sizing: border-box; padding: 10px; color: #fcc9a0; } .right{ background: #c7172c; border-top-right-radius: 10px; border-bottom-right-radius: 10px; height: 100px; float: left; width: 30%; box-sizing: border-box; padding: 10px; color: #fcc9a0; border-left: 1px dashed #fff; } .circle1{ width: 20px; height:10px; /* 寬度的一半 */ border-radius:10px 10px 0 0; /* 上和右爲高度的長度 */ background-color: #fff; border: 1px solid gray; border-bottom: none; position: absolute; bottom: 0px; left: 67%; } .circle2{ width:20px; height: 10px; /* 寬度的一半 */ border-radius: 0 0 10px 10px; /* 上和右爲高度的長度 */ background-color: #fff; border: 1px solid gray; border-top: none; position: absolute; top: 0px; left: 67%; } .btn{ cursor:pointer; width:100px; height: 40px; background-image: linear-gradient(to right, #fcc9a0 , #c7172c); color: #fff; padding: 10px; box-sizing: border-box; border-top-left-radius: 20px; border-bottom-left-radius: 20px; border-bottom-right-radius: 8px; border-top-right-radius: 8px; box-shadow: 5px 4px 15px #fcc9a0; } </style> <div class="box"> <div class="left"> <p>小程序積分兌換5元券-滿5.1元使用</p> <p style="color:#fff">有效期至:2021-12-31</p> </div> <div class="right"> <p class="btn">立即使用</p> </div> <div class="circle1"></div> <div class="circle2"></div> </div> </body> </html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章