左到右渐变

background: linear-gradient(to right, #f6f5f0, #fefefd);

对角线渐变

background: linear-gradient(to top right, #CDDC39, #8BC34A, #FFEB3B);