CSS3背景渐变主要是一种线性一种径向
线性渐变
linear-gradient(position,color1,color2……)
元素{属性为linear-gradient(不给方向只有两个值从上到下渐变)
to bottom,red ,yellow:从上往下红色渐变为黄色
to top:从下往上
to right:从左往右
to left:从右往左
颜色可以有好多个
to bottom right:从左上到右下角渐变 right可以写在前面
径向渐变
radilal-gradient(center,shape size,start-color……last-color))