1. 首页
  2. 编程面试题
  3. 前端
  4. Css

CSS背景渐变如何实现?



css3新增了一个渐变功能,对应需要渐变的背景可以直接使用css3制作。css3渐变分为两种:线性渐变、径向渐变。

线性渐变语法:background: linear-gradient(angle, color-stop1, color-stop2);

径向渐变语法:background: radial-gradient(center, shape size, start-color, ..., last-color);

发布者:admin,如若转载,请注明出处:https://ai1024.vip/28600.html

QR code
//