jsp页面有个a链接。可是,鼠标划过却不变为红色了。怎么让他再显示红色呢?
<a onclick="JavaScript:doSubmit(' <%=bean.getNotification_type_id()%>');" class="kef"> <%=bean.getNotification_type_desc()%> </a>

解决方案 »

  1.   

    <a href="javascript:doSubmit(' <%=bean.getNotification_type_id()%>');"> <%=bean.getNotification_type_desc()%> </a>
      

  2.   

    .kef {
    event: expression(onmouseover = function() { this.style.color
    = '#FF0000'},
    onmouseout  = function (){this .style.backgroundColor='#ffffff'
    }
    );
    }用在css中写kef 是什么啊  贴出来 不行的话 把我写的上面的 
    然后在看看你的css路径引用的对不 是否能加载到页面
      

  3.   

    <style type="text/css">   
      <!--   
      a   {text-decoration:none;
            color:red}   
      a:hover   {text-decoration:underline}   
       -->   
    </style>   
        
      </head>   
      <body>   
      <a href="#">点击我</a>
      </body>   
      

  4.   


    A:link {
    font: 12.5px tahoma,Arial, "宋体", Helvetica, sans-serif;
    color: #444;
    text-decoration: none;
    }
    A:visited {
    font: 12.5px tahoma,Arial, 宋体, Helvetica, sans-serif;
    color:#444;
    text-decoration: none;
    }
    A:hover {
    font: 12.5px tahoma,Arial, 宋体, Helvetica, sans-serif;
    color:red; //鼠标移到链接上显示红色
    text-shadow: gray;
    text-decoration: none;
    }
      

  5.   

    a连接如果没有href就会不变色啊
      

  6.   

    你可以css+scrip 可以实现