/從左到右漸變/
.color{
background: -webkit-linear-gradient(left,#ff9000,#ff5000) no-repeat;/* Safari 5.1 - 6.0 /
background: -o-linear-gradient(right,#ff9000,#ff5000) no-repeat; / Opera 11.1 - 12.0 /
background: -moz-linear-gradient(right,#ff9000,#ff5000) no-repeat; / Firefox 3.6 - 15 /
background: linear-gradient(to right,#ff9000,#ff5000) no-repeat; / 標(biāo)準(zhǔn)的語(yǔ)法(必須放在最后) */
}
詳見(jiàn):菜鳥(niǎo)教程http://www.runoob.com/css3/css3-gradients.html