农历四月๑乛◡乛๑

function cellClick(obj)
{
if(obj.style.color=="rgb(255,0,0)"||obj.style.color=="#ff0000") 
{obj.style.color="#000000";} 
else{obj.style.color="#ff0000";} 
}

正解:"rgb(255, 0, 0)"  

红色为rgb(255, 0, 0)0的前面均有空格

TAT 太虐。。。。。。

原文地址:https://www.cnblogs.com/shmilykk/p/3070036.html