internet-explorer - IE 9 CSS 渐变与背景中的图像不起作用

标签 internet-explorer css cross-browser internet-explorer-9

我正在使用这段代码,它在 Chrome 和 Firefox 中工作正常,但在 IE9 中不行。并根据此页面Multiple backgroundbackground-size IE9支持

span.select {
    position: absolute;
    bottom: 0;
    float: left;
    left: 0;
    line-height: 1;
    text-indent: 10px;
    background: #ffffff;
    background: url(../img/color-arrow.png) no-repeat, linear-gradient(top, #ffffff 0%,#a9a9a9 100%);
    cursor: default;
    z-index: 1;
    border: #dadada 1px solid;
    border-radius: 4px;
    background-position: 100% center;
    background-size: 1.5em 0.6em, 100% 100%;
    text-shadow: 0px 1px 1px #fff;
    white-space: nowrap }

我正在其中使用多个背景和背景调整大小

最佳答案

IE9 支持多个背景图像,但不支持多个背景元素的混合。你的问题是图像和渐变。

此外,-ms- 不会为任何属性的 CSS 兼容性做任何​​事情。

关于internet-explorer - IE 9 CSS 渐变与背景中的图像不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8623001/

相关文章:

html - 第 4 个表未与底部对齐

javascript - Chrome 和 IE 中 Date() 的不同值

html - 如何阻止元素四处移动

html - 根据表格行的大小更改图像的大小

c# - 对 IE 工具栏中实例的静态引用

css - IE9 css 媒体查询无法正常工作......在其他任何地方都可以正常工作

css - IE 10 和 11 使固定背景在使用鼠标滚轮滚动时跳转

javascript - 操作系统和操作系统版本之间的浏览器是否存在差异?

html - DIV 定位——跨浏览器问题

css - Google Chrome 中的输入类型搜索边界半径问题