1.渐变从左到右
background: linear-gradient(to right,#000,#fff);
2.渐变从上到下
background: linear-gradient(tobottom,#000,#fff);
3.角度渐变(60°)
background: linear-gradient(60deg, #000, #fff);
4.径向渐变
background: radial-gradient(rgba(235,116,63,.9),rgba(235,116,63,.3),rgba(235,116,63,0),rgba(235,116,63,0));
说明,背景渐变可以使用#fff,也可以使用带透明度的rgba(255,255,255..3);
标签:gradient,背景,渐变,116,rgba,235,fff,css From: https://www.cnblogs.com/yeziyou/p/16821269.html