background-image: -webkit-gradient(linear, right top, left top, rgba(255,255,255,0),#E1D9CD);/ Saf4+, Chrome /
background-image: -webkit-linear-gradient(left,rgba(255,255,255,0),#E1D9CD);/ Chrome 10+, Saf5.1+ /
background-image: -moz-linear-gradient(left,rgba(255,255,255,0),#E1D9CD);/ FF3.6 /
background-image: -ms-linear-gradient(left,rgba(255,255,255,0),#E1D9CD);/ IE10 /
background-image: -o-linear-gradient(left,rgba(255,255,255,0),#E1D9CD);/ Opera 11.10+ /
background-image: linear-gradient(left,rgba(255,255,255,0),#E1D9CD);}
这里用rgba颜色来设置颜色透明度,linear-gradient(left,rgba(255,255,255,0) 10%,#E1D9CD 10%);在颜色后面带上百分比来设置改颜色算占的比例