日期:2014-05-18  浏览次数:20436 次

JS的样式问题...在线等
样式为:
.addtxtcss   {   FONT-SIZE:   11px;   WIDTH:   60px;     HEIGHT:   18px;   BACKGROUND-COLOR:   #000000;   BORDER-BOTTOM-STYLE:   none   }
点一按钮后调用TABLE一行事件
for(var   i=0;i <15;i++)
{
cell[i]=row.insertCell();
}
.........
.........
.........
cell[6].innerHTML   =   " <td   > </td> ";
cell[6].className   = "addtxtcss ";

cell[7].innerHTML   =   " <td   > </td> ";
cell[7].clsaaName   = "addtxtcss ";
.........
.........
.........
cell[6]和cell[7]的表头是合并的:
<THEAD>
......
<TD     colSpan= "2 "> head </TD>
......
</THEAD>
现在的问题就是当点添加一行的按钮时, 只有Cell[6]用了addtxtcss的样式,为黑色的底色;而cell[7]没有用addtxtcss的样式,还是白色的.
求各位指教啊~~~~~急啊~~~!!!




------解决方案--------------------
cell[7].clsaaName = "addtxtcss "; --> cell[7].className = "addtxtcss ";