我在Firefox上预加载的图像有问题。在(webkit)Chrome/Safari上看起来很好。预载图像CSS
让我们来看看。
我:hover
负荷图像 CSS文件:
.zz{background:url(../img/guzik_01_ofirmie_PL_A.png) no-repeat; height: 1px; width: 1px; position:absolute; }
li#ofirmie{background:url(../img/guzik_01_ofirmie_PL_B.png) no-repeat; height: 44px; width: 108px; position: absolute; z-index: 1000;}
ul.menu li#ofirmie:hover {background:url(../img/guzik_01_ofirmie_PL_A.png) no-repeat; height: 44px; width: 108px; position:absolute;}
和HTML
<div class="zz"></div>
<li id="ofirmie" ></li>
为什么不火狐从缓存加载图像,而不是从服务器?
我该如何解决?
我尝试使用这个jQuery funtion,但功能不工作,我选择使用CSS精灵技术。 ; – gummmibear