CSS:linear-gradient()背景颜色渐变--练习笔记
css语法
background: linear-gradient(direction,color-stop1,color-stop2,...);
direction:用角度值指定渐变的方向(或角度);
color-stop1,color-stop2,…:用于指定渐变的起止颜色
ps:至少需要两种颜色
background: -webkit-linear-gradient(red,yellow,blue); /* Safari 5.1-6.0 */
background: -o-linear-gradie
转载
2020-08-07 10:45:23 ·
1677 阅读 ·
0 评论