我在某些版本的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>
Run Code Online (Sandbox Code Playgroud)
在Vista下的Firefox,IE7和IE8中,我看到了背景和没有文字,正如预期的那样.在XP下的IE6和IE8中,整个图像是缩进的,而不是文本,因此不显示图像.
什么应该是正确的行为?有解决方法吗?