【发布时间】:2010-10-30 08:14:10
【问题描述】:
我的 html 表单中有一个按钮,当使用 css 单击它时需要更改它的背景图像。它在 FF 中完美运行,但似乎 IE 不支持:active 状态。
这是我的代码:
HTML:
<button class='button'>Click Me</button>
CSS:
.button {
width: 118px;
height: 33px;
background: url(/images/admin/btn.png) no-repeat center top;
border: none;
outline: none;
}
.button:active {
background-position: center bottom;
}
【问题讨论】:
标签: html css internet-explorer button