本文主要介绍了css圆形镂空(常用做优惠券背景图),分享给大家,具体如下:
.hollow-compose-three-circles { width: 300px; height: 100px; position: relative; background: radial-gradient(circle at right top, transparent 10px, #00adb5 0) top left / 60px 51% no-repeat, radial-gradient(circle at right bottom, transparent 10px, #00adb5 0) bottom left /60px 51% no-repeat, radial-gradient(circle at left top, transparent 10px, #eeeeee 0) 60px 0/230px 51% no-repeat, radial-gradient(circle at left bottom, transparent 10px, #eeeeee 0) 60px 50px /230px 51% no-repeat, radial-gradient(circle at 10px 50px, transparent 10px, #eeeeee 0) 290px 0/10px 100px no-repeat; filter: drop-shadow(2px 2px 2px rgba(0,0,0,.2)); } .hollow-compose-three-circles::after { content: ''; height: 80px; border: 1px dashed #fff; position: absolute; left: 60px; top: 0; bottom: 0; margin: auto; } <div class="hollow-compose-three-circles"></div>
<!doctype html> <head> <meta charset="UTF-8"> <title>process</title> <style> body{ background: gray; } .many-circles { margin: 10px 0 0 40px; width: 200px; height: 100px; background: radial-gradient(circle at right, transparent 10px, #00adb5 0) top right / 51% 60px no-repeat, radial-gradient(circle at left, transparent 10px, #00adb5 0) top left / 51% 60px no-repeat; /*radial-gradient(circle at top right, transparent 10px, #eeeeee 0) bottom right / 51% 40px no-repeat, radial-gradient(circle at left top, transparent 10px, #eeeeee 0) bottom left / 51% 40px no-repeat;*/ filter: drop-shadow(2px 2px 2px rgba(0,0,0,.2)); } </style> </head> <body> <div data-v-85036100="" class="many-circles"></div> <script> </script> </body> </html>
效果如下
<style> body{ background: gray; } .hollow-one-circle{ display: inline-block; width: 246px; height: 218px; position: relative; background: radial-gradient(circle at 0 106px, transparent 10px, #FF4654 0) top left/246px 100% no-repeat; } .hollow-one-right{ display: inline-block; width: 718px; height: 218px; position: relative; background: radial-gradient(circle at 718px 106px, transparent 10px, #ffffff 0) top left/718px 100% no-repeat; box-shadow:3px 0px 13px 0px rgba(0,0,0,0.03); } .hollow-one-circle::before { content: ''; position: absolute; height: 100%; width:5px; top: 4px; left: 246px; background-image: linear-gradient(to bottom, #FF4654 5px, transparent 5px, transparent), radial-gradient(10px circle at 5px 10px, transparent 5px, #FF4654 5px); background-size: 5px 15px; } .hollow-one-circle:after { } </style> <div data-v-85036100="" class="hollow-one-circle"></div> <div data-v-85036100="" class="hollow-one-right"></div>
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
暂无评论...
更新日志
2024年11月18日
2024年11月18日
- 柏菲·胭花四乐《胭花四乐》限量开盘母带ORMCD[低速原抓WAV+CUE]
- 群星《监听耳机天碟》2018[WAV分轨][1G]
- 群星《娱协奖原创金曲合辑》滚石[WAV+CUE][1.1G]
- 罗大佑《美丽岛》2CD[WAV+CUE][1.1G]
- 言承旭.2009-多出来的自由【SONY】【WAV+CUE】
- 赤道.2000-精选2CD【ACM】【WAV+UCE】
- 许廷铿.2017-神奇之旅【华纳】【WAV+CUE】
- 李克勤《罪人》环球[WAV+CUE][1G]
- 陈粒2024《乌有乡地图》有此山文化[FLAC分轨][1G]
- 蔡依林《MYSELF》 奢华庆菌版 2CD[WAV+CUE][1.5G]
- 刘春美《心与心寻世界名曲中文版》新京文[低速原抓WAV+CUE]
- 朱逢博《蔷薇蔷薇处处开》[FLAC+CUE]
- 姚璎格2005《心在哭泣》龙韵[WAV分轨]
- 费玉清《费玉清收藏》 2CD 华纳[WAV+CUE][1G]
- 徐怀钰《LOVE》台湾首版[WAV+CUE][1G]