当鼠标点击单元格(td)时,单元格内的字体变色? document.getElementById(id).style.color="#60A5DD"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不行哦.color有哪个字母要大写吗?我发现要是属性词大小写搞错是不行的.我的javascript很水的.谢谢指教. document.getElementById(id).color="#60A5DD"; document.getElementById(id).color="#60A5DD";这个方法也不行.很奇怪 function settdcolor(id){ document.getElementById(id).style.backgroundColor="#60A5DD"; document.getElementById(id).color="red"; }<td width="70" align="right" id="tagopen" onclick="settdcolor('tagopen');">背景颜色都设置成功,也就是说document.getElementById(id).style.backgroundColor="#60A5DD";这个是OK的.但 document.getElementById(id).color="red";这个设置字体颜色不行.不知为什么.大家再帮忙想想吧.谢谢.不够分我就加多点分下去. 少了styledocument.getElementById(id).style.color="#60A5DD"; 在td里加上这个onclick="this.style.color='#60A5DD'" impeller(竹子) ( ) 信誉:100 2006-08-02 09:15:00 得分: 0 少了styledocument.getElementById(id).style.color="#60A5DD"; ---------------------------------------------------------------------这个对 动态创建audio对象时Firefox下没声音 JS怎么获取浏览器地址里的固定值?怎么获取a 求一个用JS正则表达式写的计算器 正则表达式识别字符串中的部分URL 和大家分享一个很好的资源网站 如何将ID传到鼠标右键菜单选项中! 那个大神能指导个正则 关于onunload问题~~~急 如何:得到脚本的父元素 如何把字符串"D$1,D$2,D$3,T$1001,T$1002,T$1003"分离成"1,2,3;1001,1002,1003"? 在线求:根据不同时间显示表格中背景图片的JS代码!!! 页面刷新时,如何通过js使控件不可见?
很奇怪
document.getElementById(id).style.backgroundColor="#60A5DD";
document.getElementById(id).color="red";
}<td width="70" align="right" id="tagopen" onclick="settdcolor('tagopen');">背景颜色都设置成功,也就是说
document.getElementById(id).style.backgroundColor="#60A5DD";这个是OK的.但 document.getElementById(id).color="red";这个设置字体颜色不行.不知为什么.大家再帮忙想想吧.谢谢.不够分我就加多点分下去.
document.getElementById(id).style.color="#60A5DD";
onclick="this.style.color='#60A5DD'"
少了style
document.getElementById(id).style.color="#60A5DD";
---------------------------------------------------------------------这个对