提交按钮按下後会刷新页面或者跳转的,你确定不是鼠标指针指到时换色?如果是按下後换色的话,默认自己会换的,最好不要自己选颜色,毕竟不规范。
css没有控制点击变色的功能,只有放上去的功能,建议用js去实现。
/>
sdfsf 非IE6浏览器,可以使用input:hover的伪类来控制样式,但IE6浏览器只能用JS来实现了,需要设定两个状态,然后用JS切换类。#c_button { width:92px; height:30px; border:0; float:left;}.c_up{background:url(../images/i_login_btn.png) no-repeat 0 top;}.c_down{background:url(../images/i_login_btn.png) no-repeat 0 bottom;}
document.getElementById("c_button").onmouseover=function() {this.className = "c_down";}document.getElementById("c_button").onmouseout=function(){this.className = "c_up";}
这个叫做图片按钮