小工具知识网

当前位置: 首页 > 行业知识 > css实现背景渐变叠加

行业知识

css实现背景渐变叠加

2026-11-11 08:57:52 来源:互联网转载
线性渐变效果图:
.box{      width: 100vw;      height: 100vh;      background:linear-gradient(to bottom,transparent,#fff 30%),linear-gradient(to right,pink,skyblue);    }
径像渐变效果图:
.box{      width: 100vw;      height: 100vh;      background:linear-gradient(to bottom,transparent,#fff 300px), radial-gradient(90% 200px at left top,pink,transparent),radial-gradient(60% 200px at right top,rgb(45, 229, 25),transparent);    }

上一篇:微信炫酷漂浮物教程,轻松掌握,让你的消息瞬间炫酷起来!

下一篇:背起英语怎么读音发音?