trElement.style.bgcolor="red";//无效? trElement.style.backgroundColor="red";//无效 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼上正解:trElement.style.color="red";//字体颜色trElement.style.backgroundColor="red";//背景色 <TABLE><TR id=trElement> <TD>aa</TD> <TD>bb</TD></TR></TABLE><SCRIPT LANGUAGE="JavaScript"><!--trElement.bgColor="red"//--></SCRIPT> trElement.bgColor="red" // 大小写trElement.style.backgroundColor="red"; onclick事件不触发的问题 如何 利用 javascript 更改鼠标 ?? 高手请进 树形结构的难题 在静态页面中怎么给js连接添加随机数 关于Microsoft.XMLHTTP 与MSXML2.XMLHTTP的一个问题 FCKeditor的工具栏怎么显示在编辑区左侧? 请教一个屏蔽右键和IE部分菜单的问题 求高手帮忙改下带箭头滚动的JS <script>中language属性是用javascript还是jscript好,在VS.Net中语法提示是否不相同? 关于google地图开发中标记用的的图标的问题 有个关于地址的问题,希望帮助. 关于按钮
trElement.style.color="red";//字体颜色
trElement.style.backgroundColor="red";//背景色
<TR id=trElement>
<TD>aa</TD>
<TD>bb</TD>
</TR>
</TABLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
trElement.bgColor="red"
//-->
</SCRIPT>
trElement.style.backgroundColor="red";