objCell.propertyName = "meizz";

解决方案 »

  1.   

    动态生成一个<TD>没有ID这样怎么不行?
    var myNewRow=document.all.t1.insertRow()
    var td1=myNewRow.insertCell();
    td1.class="\"td-left\""
      

  2.   

    td2.outerHTML="<td class=\"td-left\"></td>" 
    td2.class.cssText="td-left"
    这样加为什么不对?
      

  3.   

    className是什么?如果要加背景色用TD1.??什么?
      

  4.   

    className是CSS中定义的,如<style type="text/css">
    .c1 {
    background-color:#FF0000;
    }
    .c2 {
    background-color:#00FF00;
    }
    </style>
    id.className="c1";
      

  5.   

    className 就是<td class='ice'>中的class属性
      

  6.   

    bgcolor="#FFFFFF"这个属性怎么加.
      

  7.   

    这好像不对
    <td id="t1">&nbsp;</td>
    var o = document.getElementById("t1");
    o.style.backgroundcolor="ffffff";
    背景色还是没变.
      

  8.   

    o.style.backgroundColor="ffffff";
      

  9.   

    o.style.backgroundColor = "#FFFFFF";