哪位大神给我解释一下下面这段代码什么意思?

background-image:-webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,0.35)),
color-stop(0.3, rgba(255,255,255,0.35)), color-stop(0.3, transparent),
color-stop(0.7, transparent), color-stop(0.7, rgba(255,255,255,0.35)),
to(rgba(255,255,255,0.35)));
background-image:-webkit-linear-gradient(rgba(255,255,255,0.35) 0%,
rgba(255,255,255,0.35) 30%, transparent 30%, transparent 70%,
rgba(255,255,255,0.35) 70%, rgba(255,255,255,0.35) 100%);


慕村7893691
浏览 1146回答 1
1回答

Aadeutopia

线性渐变,background: linear-gradient(direction, color-stop1, color-stop2, ...); direction:默认为to bottom,即从上向下的渐变; stop:颜色的分布位置,默认均匀分布,例如有3个颜色,各个颜色的stop均为33.33%。
打开App,查看更多内容
随时随地看视频慕课网APP