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%);
1 回答
Aadeutopia
TA贡献2条经验 获得超1个赞
线性渐变,background: linear-gradient(direction, color-stop1, color-stop2, ...);
direction:默认为to bottom,即从上向下的渐变;
stop:颜色的分布位置,默认均匀分布,例如有3个颜色,各个颜色的stop均为33.33%。
- 1 回答
- 0 关注
- 1145 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消