css-linear-gradient

102 阅读1分钟

线性渐变函数,用于创建一个表示两种或多种颜色线性渐变的图片

语法

linear-gradient(direction, color-stop1, color-stop2, ...)
描述
direction用角度值指定渐变的方向
color-stop1, color-stop2,...用于指定渐变的起止颜色。

代码