css的线性渐变
css的线性渐变背景属性名称:backround-image-默认(从上往下渐变)background-image:linear-gradient(red,#000);//背景颜色从红色变黑色(方向为上往下)-设置方向background-image:linear-gradient(to left ,red,#000);//背景颜色从红色变黑色(方向为左渐变)方向:to left , to right , to bottom(默认的) , to top , xxxdeg(xxx为数字,
原创
2020-06-27 11:01:34 ·
149 阅读 ·
0 评论