internet-explorer - 为什么这个渐变在 IE 9 上不起作用?

标签 internet-explorer css internet-explorer-9 gradient

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/

相关文章:

html - 停止表单输入溢出滚动div内容

css - 什么取代了 Internet Explorer 9 中的视觉过滤器?

internet-explorer-9 - IE9 渲染具有不透明度、border-radius 或 cufon 的元素

css - 互联网浏览器 : make text fill space

javascript - 使用 jQuery 的 slider 幻灯片

internet-explorer - IE 11 的内存泄漏,而 Google Chrome 不会发生

css - 如何在父 div 中居中数据?

css - 我如何使用过滤器 : for ie8 that won't affect ie9?

javascript - mootools 无法在 ie 上的另一个元素的底部注入(inject)一个元素

javascript - 当报表托管在域与父页面不同的 Iframe 中时,从 SSRS 报表调用 JavaScript 不起作用