1,从左到右的渐变
background: -webkit-linear-gradient(left, #EE1313, #FF654C);
background: -o-linear-gradient(left, #EE1313, #FF654C);
background: -moz-linear-gradient(left, #EE1313, #FF654C);
background: linear-gradient(left, #EE1313, #FF654C);
2,从上到下的渐变
background: -o-linear-gradient(red, blue); /* Opera 11.1 - 12.0 */
background: -moz-linear-gradient(red, blue); /* Firefox 3.6 - 15 */
background: linear-gradient(red, blue); /* 标准的语法 */}