background:
liner-gradient(to right, red, blue...) 线性渐变左右
(to bottom, red, blue...) 线性渐变上下
(to bottom right, red, blue...) 线性渐变对角
background-image:
radial-gradient(circle,green,pink); 圆周渐变
参数:位置x 位置y 颜色 颜色
background:
liner-gradient(to right, red, blue...) 线性渐变左右
(to bottom, red, blue...) 线性渐变上下
(to bottom right, red, blue...) 线性渐变对角
background-image:
radial-gradient(circle,green,pink); 圆周渐变
参数:位置x 位置y 颜色 颜色
本文标题:css3渐变
本文链接:https://www.haomeiwen.com/subject/hyqcpctx.html
网友评论