CSS图像间歇加载

时间:2011-02-09 13:33:33

标签: html css visual-studio-2008

我无法提供太多信息,除了有时候(每25次运行中可能有1次)我用CSS调用的图像无法正确加载。图像在那里,因为如果我将鼠标悬停在它上面,它会显示在某些地方。

HTML:

<div class="body-top"> blah </div>

CSS:

.body-top {background:url(../images/top.gif) no-repeat; height:55px; width: 970px; margin:0; padding:0;}

它在Visual Studio的开发服务器上运行。

有什么想法吗?

编辑:将鼠标悬停在图片上本身实际上没有显示任何内容,当我将鼠标悬停在图片上的链接上时

1 个答案:

答案 0 :(得分:0)

没有看到页面就很难帮助,但是。

你能验证里面没有任何元素有背景颜色吗? 尝试将其添加到测试内容中:

.body-top *{background:none !important;}

不要将此作为最终代码使用,因为!important标志将停止为内部元素工作的任何背景.body-top

相关问题