linear-gradient(red,yellow,blue) 线性渐变
/* 从上到下,蓝色渐变到红色 */
linear-gradient(blue, red);
/* 渐变轴为45度,从蓝色渐变到红色 */
linear-gradient(45deg, blue, red);
/* 从右下到左上、从蓝色渐变到红色 */
linear-gradient(to left top, blue, red);
/* 从下到上,从蓝色开始渐变、到高度40%位置是绿色渐变开始、最后以红色结束 */
linear-gradient(0deg, blue, green 40%, red);
/*透明度*/
linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1));
分享好看的渐变: background:linear-gradient(-45deg, #5ba8e5,#b0ade6,#fe8abb,#ff9795);