通过JavaScript加载ascx页面时,在Firefox中无法正确加载PNG图像

时间:2016-04-06 13:32:20

标签: html css firefox

我正在使用JavaScript加载ascx文件。当ascx第一次加载时,窗口的背景图像会正确显示。当我第二次加载它时,背景图像不可见。但当我将鼠标悬停在该部分时,它再次可见。

此问题仅发生在Firefox中。它在Chrome中运行良好。

我的HTML:

<tr class="adminPopupBGGrey ">
  <td colspan="2" class="adminPopupLines">&nbsp;
  </td>
</tr>

CSS:

.adminPopupLines
{
    background-image: url(/img/icons/AdminPopupLines.png);
    background-repeat: repeat-x;
    background-position: center;
    height: 2px;
    width: 4px;
}

0 个答案:

没有答案