我的渐变适用于Firefox,Opera,Safari等,但不适用于IE。
我的代码如下,有人可以帮助我:
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #b49931), color-stop(0.5, #5E5E5E), color-stop(0.51, #707070), color-stop(1, #838383));
background-image: -moz-linear-gradient(center bottom, #b49931 0%, #5E5E5E 50%, #707070 51%, #838383 100%); //FF
background-image: -ms-linear-gradient(center bottom, #b49931 0%, #5E5E5E 50%, #707070 51%, #838383 100%); //IE
background-image: -0-linear-gradient(center bottom, #b49931 0%,#5E5E5E 50%, #707070 51%, #838383 100%); //opera
答案 0 :(得分:2)
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000');