CSS:
background-image: linear-gradient(bottom, #000000 29%, #999999 65%);
background-image: -o-linear-gradient(bottom, #000000 29%, #999999 65%);
background-image: -moz-linear-gradient(bottom, #000000 29%, #999999 65%);
background-image: -webkit-linear-gradient(bottom, #000000 29%, #999999 65%);
background-image: -ms-linear-gradient(bottom, #000000 29%, #999999 65%);
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.29, #000000), color-stop(0.65, #999999));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#999999');
为什么 IE 版本的渐变不起作用?我似乎找不到问题所在?
最佳答案
尝试设置 GradientType 属性:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#999999', GradientType=0);
关于internet-explorer - 为什么这个渐变在 IE 9 上不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17799206/