我有一个提交按钮,使用下面的CSS样式很是:形式提交按钮移动切割图像
.subm
{
background-color:Transparent;
background-image:url(Images/Button_Send.png);
background-repeat:no-repeat;
width:82px;
height:30px;
display:block;
border:none;
outline:none;
overflow:visible;}
.subm:hover
{
background-color:Transparent;
background-image:url(Images/Button_Send_Over.png);
background-repeat:no-repeat;
width:82px;
height:30px;
display:block;
border:none;
outline:none;
overflow:visible;
}
下面是HTML:
<input type="submit" class="subm" value="" />
没什么希奇。然而,让我感到懊恼的是,当在IE中单击提交按钮时,它将图像向上移动了几个像素,从而将它们关闭,这使得它看起来,嗯,好词“naff”。我该如何补偿或阻止?
我已经尝试扩大图像,并留下几个空白像素在顶部,但它仍然做同样的事情!
谢谢R.