【发布时间】:2011-03-29 01:26:39
【问题描述】:
我正在尝试删除 HTML Button 元素上的所有效果。 HTML:
<div id="go">
<button onclick="load.update(true,cards.id);" type="submit"></button>
</div>
CSS:
#header #go button{
display:block;
border:0 none;
cursor:pointer;
outline:none;
vertical-align:top;
width:18px;
height:33px;
background:url('../images/cards/go.png'); //Just an image to replace it all.
}
在 Chrome 和 Firefox 中这工作正常,但在 IE(至少 8)中,当单击按钮时,按钮的“推送”效果仍然存在(例如偏移量) 有什么技巧可以用来消除这种效果吗? 提前致谢! 柴油机。
【问题讨论】:
-
一个重复的问题是我找到的唯一正确答案:stackoverflow.com/a/21163265/2816199。