简体   繁体   English

Bootstrap渐变Mixin在IE9中不起作用

[英]Bootstrap gradient mixin not working in IE9

I have this code that I got from compiling a bootstrap gradient less mixin: 我有这段代码是从编译引导梯度减去mixin而得到的:

html, body {
    height: 100%;
    background-image: -webkit-linear-gradient(top, rgba(108, 91, 123, 0.8) 0%, rgba(53, 92, 125, 0.8) 100%);
    background-image: -o-linear-gradient(top, rgba(108, 91, 123, 0.8) 0%, rgba(53, 92, 125, 0.8) 100%);
    background-image: linear-gradient(to bottom, rgba(108, 91, 123, 0.8) 0%, rgba(53, 92, 125, 0.8) 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cc6c5b7b', endColorstr='#cc355c7d', GradientType=0);
}

http://jsfiddle.net/xzyfg67z/ http://jsfiddle.net/xzyfg67z/

It works OK in all major browsers, IE 10+ too, but not in IE9. 它在所有主流浏览器(IE 10+)中都可以正常运行,但在IE9中则不能。

I wonder if Bootstrap gradient mixins are supposed to be supported at all by IE9, or is something with my code? 我想知道IE9是否应该支持Bootstrap渐变混合,或者我的代码有什么用?

Background gradients in IE9 I don't think is supported. 我认为不支持IE9中的背景渐变。 The workaround seems to be using SVG as outlined in this approach . 解决方法似乎正在使用此方法中概述的SVG。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM