backgroundColor  有这样的吗?

解决方案 »

  1.   

    但是这段代码插入<TD>标签中是好用的!
      

  2.   

    style写错了,写成onMouseOver="this.style.background='#000000';"就ok了-------------------------------
    <tr width="550" height="20" bgcolor=#ffffff onMouseOver="this.style.background='#000000';" onMouseOut="this.style.backgroundColor=''; this.style.cursor='hand';"> 
        <td>......</td>
        <td>......</td>
        <td>......</td>
    </tr>
      

  3.   

    楼主我试验了你的代码可以正常使用啊,不过table标签不全不行
    ------------------------------
    <table>
    <tr width="550" height="20" bgcolor=#ffffff onMouseOver=this.style.backgroundColor='#FAFBFC'; onMouseOut=this.style.backgroundColor=''; this.style.cursor='hand';> 
        <td>......</td>
        <td>......</td>
        <td>......</td>
        </tr>
    </table>
      

  4.   

    1。应该是style.bgcolor
    2。对table是否有css,是否和css冲突了
      

  5.   

    onmouseover="this.style.backgroundColor='red'这样肯定是可以的,要不就是你的页面中对所有的<TR>标签定义了css效果
      

  6.   

    还是不行(PS:将事件置于td内可以,但是在tr中就是不行)<td>中设置了css,但是在<tr>中没有,盼高手请教!!!