1
string script="<script language=javascript>";
2
newRow = "newRow = document.getElementById('TAB_VIEW').insertRow();";
3
newCell = "newCell = newRow.insertCell();";
4
color = "newCell.style.backgroundColor=\""+c+"\";";
5
content = "newCell.innerHTML =\""+s.Replace("\r\n","\\r\\n")+"\";";
6
alig = "newCell.style.align=\""+a+"\";";//功能没有实现
7
height = "newCell.style.height=\""+h+"\";";
8
script+=newRow+newCell+content+color+alig+height+"</script>";
9
Page.RegisterStartupScript("key3",script);
10![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
其中第6行 alig = "newCell.style.align=\""+a+"\";"; 没有实现功能![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
10
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
newCell.style.backgroundColor=
newCell.style.height=
这两句都行,为什么newCell.style.align=这样表示不行?
请高手指点
![](https://www.cnblogs.com/CuteSoft_Client/CuteEditor/images/emquestion.gif)
先对每一个看我问题的表示感谢!