jsp页面有个a链接。可是,鼠标划过却不变为红色了。怎么让他再显示红色呢?
<a onclick="JavaScript:doSubmit(' <%=bean.getNotification_type_id()%>');" class="kef"> <%=bean.getNotification_type_desc()%> </a>
<a onclick="JavaScript:doSubmit(' <%=bean.getNotification_type_id()%>');" class="kef"> <%=bean.getNotification_type_desc()%> </a>
event: expression(onmouseover = function() { this.style.color
= '#FF0000'},
onmouseout = function (){this .style.backgroundColor='#ffffff'
}
);
}用在css中写kef 是什么啊 贴出来 不行的话 把我写的上面的
然后在看看你的css路径引用的对不 是否能加载到页面
<!--
a {text-decoration:none;
color:red}
a:hover {text-decoration:underline}
-->
</style>
</head>
<body>
<a href="#">点击我</a>
</body>
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;
}