jsp中点击后文字变色的问题……

来源:百度知道 编辑:UC知道 时间:2024/07/02 12:24:08
<html:link action="banVaspAction.do"
paramId="id" paramName="vasp"
paramProperty="vasp_id"
scope="request"
onclick="return confirm('确定要禁用吗?')">禁用
</html:link>
这段代码中,我希望在点击“禁用”后,“禁用”两个字的颜色可以变成红色,该怎么做?

用JS

<style type="text/css">
<!--
a:visited {
font-family: "宋体";
font-size: 12px;
color: #000000;
text-decoration: none;
}
-->
</style>
color设置成红色的代码就好了在jsp的<head></head>中设置css