IE9 HTML CSS
CSS中:.main_le li.vio,.main_ri li.vio{background:-webkit-gradient(linear,100% 0,0 0,from(#876CD5),to(#5333AE));background:-o-linear-gradient(right,#876CD5,#5333AE);background:-moz-linear-gradient(right,#876CD5,#5333AE);} IE要用滤镜
background:-webkit-gradient(linear,100% 0,0 0,from(#876CD5),to(#5333AE));
background:-o-linear-gradient(right,#876CD5,#5333AE);
background:-moz-linear-gradient(right,#876CD5,#5333AE);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5333AE', endColorstr='#876CD5',GradientType=1);
帮一楼补充说明一下
IE依靠滤镜实现渐变。
startColorstr表示起点的颜色,endColorstr表示终点颜色。GradientType表示渐变类型,0为缺省值,表示垂直渐变,1表示水平渐变