class="myButton"我正在尝试通过在 a 中定义它并更改 CSS 中的样式来用图像替换提交按钮。单击时myButton:active似乎不起作用。
这是我的CSS:
.myButton{
    background:url(./images/but.png) no-repeat;
    cursor:pointer;
    border:none;
    width:100px;
    height:100px;
}
myButton:active {
     background:url(./images/but2.png) no-repeat;
}
HTML 代码:
<input class="myButton" type="submit" value="">