#botton{
background: linear-gradient(top, #6de37d 0%, #68d574 100%);
background: -webkit-linear-gradient(top, #6de37d 0%, #68d574 100%);
background: -moz-linear-gradient(top, #6de37d 0%, #68d574 100%);
}
IE 9 只是不显示这个元素。我找到了适用于 IE 10 的解决方案,但我能在这里做些什么吗?
我如何才能只为具有非渐变背景的 IE 编写此按钮的 CSS?
最佳答案
这将为 IE 添加渐变。 IE9 不支持线性渐变。
一个例子:
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#6de37d', endColorstr='#68d574'); /* for IE */
关于internet-explorer - IE 不使用线性渐变 CSS 渲染元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17104952/