javascript - 为什么多个背景图像不适用于 IE?

标签 javascript css

我的这段代码在 Chrome 和 Firefox 中运行良好,但在 IE 上只出现第二个背景图像...你知道为什么吗?

    $('input[type=button]').click(function() {
    //search for the button
    var button = document.getElementsByName("contactme");
    //change the image
    button[0].style.background = "url(http://www.restorationsos.com/imgs/loader.gif) no-repeat,  url('http://www.restorationsos.com/imgs/btnBG.gif') repeat-x";
    //change the text
    button[0].value = "We Are Connecting You...";
    button[0].style.textAlign = "right";
    button[0].style.color = "#ea2400";
    //disable the button
    button[0].disabled = true;
});

直播:http://jsfiddle.net/cristiboariu/pUeue/21/

最佳答案

关于javascript - 为什么多个背景图像不适用于 IE?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6115718/

相关文章:

javascript - JavaScript 中的剩余语法

javascript - 清除匿名 setInterval

html - CSS动画转换问题

html - 旋转标题 CSS3

html - 在磁盘上访问页面时,如何在我的 HTML 文档中引用图像?

javascript - 只有一个功能而不是许多看起来相同的功能?

javascript - 对在 HTTP1 和 HTTP2 中发送请求感到困惑

javascript - WooCommerce 结帐字段编辑器 (minDate) 不起作用?

html - 显示 :table-cell in IE 11 中的绝对定位错误

javascript - 当我将鼠标悬停在图像上时如何显示虚拟箭头