我在一些版本的Internet Explorer中遇到了以下代码问题:
#iconautente{
background-image:url('/style/images/spritecommon.png'); /*icona_utente.png*/
background-position:-117px -15px;
text-indent:-9000px;
width:20px;
height:23px;
display:inline-block;
}
<a id="iconautente" href="/admin/index.php">admin</a>
在Firefox、IE7和Vista下的IE8中,我看到了背景但没有文字,这是预期的。在XP下的IE6和IE8中,整个图像都被缩进了,而不是文字,因此图像没有显示出来。
正确的行为应该是什么?有没有解决方法?