2012-12-12 20 views
0

在Web应用程序中,我正在使用具有替代文字的图像精灵。但在Firefox中,只有实际的alt-text将图像叠加在屏幕上。Firefox图像精灵显示替代文字

<img width="36" height="36" class="step1Current" title="Step 1" alt="Quote step one image"> 

它的类是:

.step1Current{ 
    background: url(../images/progress-sprites.png) no-repeat; 
    background-position: 0px 0px ; 
    width: 36px; 
    height: 36px; 
} 

所以图像与文本 '引用一步一个形象' 叠加。

+1

不用于img标签的背景属性 –

回答