【发布时间】:2012-08-06 20:55:12
【问题描述】:
我使用带有“冰云”图像的背景,我确实会消失,然后使用 jQuery 并使用 .fadeTo() 函数重新出现。由于背景图片是 .png,如果您在 SO Windows xp 上使用 IE8,我会看到背景图片好像有边框黑色/灰色,透明不完美,而如果您使用其他浏览器,“冰云”是正常的。我想知道是否有一些插件 jQuery 或 css 过滤器可以解决 IE8 上的这种透明不兼容问题。
html:
<div class="ice"></div>
css:
#main #slogan #iphone .ice {
position:absolute;
top:20px;
right:22px;
display:block;
width:450px;
height:486px;
background:transparent url(../images/system/main-animation-ice.png) no-repeat 0 0;
z-index:1;
}
javascript:
$(o).delay(i*'1200').fadeTo(2000,1.0).fadeTo(2000,0.2);
左边是正常效果,右边是IE8的bug。
【问题讨论】:
标签: jquery css internet-explorer-8 windows-xp iepngfix