css圆形镂空(优惠券背景图)的实现

这篇文章主要介绍了css圆形镂空(常用做优惠券背景图),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

本文主要介绍了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; } 

效果图
 

  process 

效果如下

在这里插入图片描述

 

效果如下

到此这篇关于css圆形镂空(常用做优惠券背景图)的文章就介绍到这了,更多相关css 圆形镂空内容请搜索0133技术站以前的文章或继续浏览下面的相关文章,希望大家以后多多支持0133技术站!

以上就是css圆形镂空(优惠券背景图)的实现的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » CSS 教程