function curhigh(){
$("#moto").css('background-image',"/copyright.gif");
alert(document.getElementById('moto').style.backgroundimage);
}
$(document).ready(function()
{
curhigh();
});这段代码没有正确将moto的背景设置成/copyright.gif,请问怎么回事
$("#moto").css('background-image',"/copyright.gif");
alert(document.getElementById('moto').style.backgroundimage);
}
$(document).ready(function()
{
curhigh();
});这段代码没有正确将moto的背景设置成/copyright.gif,请问怎么回事
alert(document.getElementById('moto').style.backgroundImage);图片引用路径要确保正确。