关于渐变属性值的一些理解

首先,对于渐变(gradient)主要有两种方式,一种为线性渐变(linear-gradient),一种为径向渐(radical-gradient) 本篇着重讨论线性渐变。 渐变的语法: background: linear-gradient(direction, color-stop1, color-stop2, …); 其中对于这个gradient轴也要有一定的了解(类似于弹性盒的主轴和副轴)
相关文章
相关标签/搜索