在 Web 应用程序中,我使用具有替代文本的图像精灵。但在 Firefox 中,只有实际的 alt-text 会覆盖屏幕上的图像。
<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;
}
因此,图像上覆盖了文本“引用第一步图像”。