我试图从IE9上的按钮中删除按下的效果。在所有其他浏览器中,我没有任何问题。我无法删除Internet Explorer 9中按钮的按下效果。
请看一看的代码
HTML
<button class="fancy">howdy!</button>
CSS
.fancy {
width: 60px;
height: 30px;
position: relative;
top: 0px;
margin: 0;
padding: 0px;
display: block;
border: none;
padding: 0;
color: #FFF;
font-size: 11px;
background: green;
outline: none;
overflow: hidden;
line-height: 11px;
}
.fancy:active,.fancy:focus
{
padding:0px;
margin:0px;
border: none;
outline:none;
text-indent: 0;
line-height: 11px;
}
工作演示http://jsfiddle.net/MDfvE/
正如你所看到的,当你点击IE9按钮你会看到文字被移到右边和底部。我想删除它。
任何线索?谢谢!
也许可以尝试设置样式为:走访:链接? – Anagio 2012-01-03 15:29:26
这是一个按钮元素,不是锚点。 – sanbor 2012-01-04 15:50:21
重复的问题有我找到的唯一正确答案:http://stackoverflow.com/a/21163265/2816199。 – tomekwi 2015-08-11 09:31:56