到目前为止,我在使用 IE 7 或 8 以及透明 PNG 时从未遇到过问题。我不知道是 Photoshop 还是 Fireworks 可能搞砸了。
我真的不知道还能说什么......
这是链接:
这是主页上的三个褪色图像。
我唯一的猜测是,这与内容背景也是透明的 PNG 有关。
我还下载了 pngcrush,实际上我什至无法让它在命令行中运行,所以任何帮助都会很好。
提前致谢!
I've never had a problem before with IE 7 or 8 and transparent PNGs until now. I don't know if it's Photoshop or Fireworks that is possibly messed up.
I really don't know what else to say..
here is the link:
It's the three fading images on the home page.
My only guess is that it has to do with the content background being a transparent PNG too.
I've also downloaded pngcrush and I actually can't even get that to run in command line, so any help with that too would be nice.
Thanks in advance!
发布评论
评论(3)
好的,在您的主索引文件第 14 行中,
将其替换为:
因为这就是您应该如何在 IE 小于 IE 7 的情况下使用 pngfix.js
尝试一下 :) 让我知道。
OK so in your main index file line 14 which says:
Replace that with:
Since that's how you are supposed to use pngfix.js for IE less than IE 7
Try it :) let me know.
如果删除循环插件代码,您将看到背景变得透明。我没有查过原因,但它导致了问题。
将其添加到循环选项中,背景就会消失=)
来源:
http://jquery.malsup.com/cycle/options.html
If you remove the cycle plugin code, you'll see that the backgrounds become transparent. I haven't looked up why, but it's causing the problem.
Add this to the cycle options and the background will go away =)
Source:
http://jquery.malsup.com/cycle/options.html
设置图像的样式属性,如下所示
适用于 ie7 和 ie8
set the style property of the image like this
<img src="<your-url-img>" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='<your-url-img>', sizingMethod='scale');" />
works on ie7 and ie8