internet-explorer - IE 不使用线性渐变 CSS 渲染元素

标签 internet-explorer internet-explorer-9 css

#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/

相关文章:

html - 为什么四个按钮在 IE 中没有排成一行?

javascript - 如何隐藏我的下拉菜单?

css - 互联网浏览器中的tinymce图标

html - 搜索按钮未与搜索字段对齐

javascript - Grails 将 JSON 发送为 "text",但 IE 加载其 ajax 的 URL 并显示其响应 : why?

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

php - PHP 代码中的 CSS 搞乱了 IE9 中的布局

c++ - 使用 IOpenServiceManager::InstallService 设置 IE 的默认搜索引擎提供程序

javascript - 曝光时图像淡入

javascript - 平滑滚动到顶部然后固定/固定 float 元素