用css编辑圆形镂空打孔效果的优惠券
发布时间:2022-04-20 08:51:14 所属栏目:语言 来源:互联网
导读:我们在开发电子商务网站时,往往会遇到发开商场优惠券的需求,那么我们就需要考虑优惠券的样式。边缘镂空打孔效果,是我们经常能在一些优惠券的设计上能看到的,下面是就给大家分享一下css圆形镂空效果的实现。大家在做优惠券时,能参考一下。 .hollow-compo
我们在开发电子商务网站时,往往会遇到发开商场优惠券的需求,那么我们就需要考虑优惠券的样式。边缘镂空打孔效果,是我们经常能在一些优惠券的设计上能看到的,下面是就给大家分享一下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)); <!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)); (编辑:开发网_开封站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |