gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 05:22:47 25 4
gpt4 key购买 nike

我的这段代码在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com