我想在运行时通过 jQuery 有条件地更改我的 Cluetips 的背景图像。我使用“rounded”作为 cluttipClass。
我认为这可以解决问题:
$('.cluetip-rounded').css("background", "url(infobox_left.png)");
但在 Chrome 开发者工具栏中,我可以看到 CSS 设置完全没有改变。
如何更改 cluttip CSS 设置?
最好的, 大卫
最佳答案
它应该可以工作。确保您有正确的图像路径。看这个: http://jsfiddle.net/DRN3P/
关于javascript - 在运行时更改 Cluetip 背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10344764/