其他分享
首页 > 其他分享> > 4.9

4.9

作者:互联网

从上到下渐变:

#grad { background-image: linear-gradient(#e66465, #9198e5); }

从左到右的线性渐变:

#grad { height: 200px; background-image: linear-gradient(to right, red , yellow); }

从左上角到右下角的线性渐变:

#grad { height: 200px; background-image: linear-gradient(to bottom right, red, yellow); }

标签:linear,gradient,image,4.9,background,grad,渐变
来源: https://www.cnblogs.com/gj-zzh2021/p/16123231.html