document.getElementById("mc").rows[0].cells[2].style.background = 'url("images/biaotiZi-100x25-2.gif")'

解决方案 »

  1.   

    如果不加上“'”,那么就当成调用url()函数。
      

  2.   

    function mm() 

    document.getElementById("mc").rows[0].cells[2].style.backgroundImage="url('images/biaotiZi-100x25-2.gif')";
    document.getElementById("mc").rows[0].cells[1].style.backgroundImage="url('images/biaotiZi-100x25-2.gif')";
      

  3.   

    也可以使用
    document.getElementById("mc").rows[0].cells[1].style.backgroundImage = "images/.....gif";
      

  4.   

    function mm() 

    document.getElementById("mc").rows[0].cells[2].style.backgroundImage="url('images/biaotiZi-100x25-2.gif')"; 
    document.getElementById("mc").rows[0].cells[1].style.backgroundImage="url('images/biaotiZi-100x25-2.gif')"; 
    } 应该是的
      

  5.   

    function mm() 

    document.getElementById("mc").rows[0].cells[2].style.backgroundImage="url('images/biaotiZi-100x25-2.gif')"; 
    document.getElementById("mc").rows[0].cells[1].style.backgroundImage="url('images/biaotiZi-100x25-2.gif')";