Shadowbox 覆盖在 IE 6 中不透明
当尝试在 IE6 中使用 Shadowbox 时,覆盖透明度根本不起作用,它保持完全黑色。在所有其他 IE 版本(7、8 和 9)中,覆盖效果很好。你们知道为什么会发生这种情况吗?
如果您想了解我在说什么,您可以在项目网站上测试示例,它们在 IE 6 中也不起作用。您可能会注意到按钮也不会显示,因为它们是带有透明背景,但是可以通过创建 .gif 图像并专门针对 IE6 设置它们来轻松解决此问题。
链接:
主页: http://www.shadowbox-js.com/index.html
谢谢,
When trying to use Shadowbox with IE6 the overlay transparency simply not works, it remains completely black. In all other IE versions (7, 8 and 9) the overlay works just fine. Do you guys have any idea to why this is happening?
If you wanna check out what I'm talking about, you can test the examples on the project's web site, they also do not work in IE 6. You might notice that the buttons are also not displayed, as they are .png images with transparent background, however this can be easily fixed by creating .gif images and setting them specifically for IE6.
Links:
Main page: http://www.shadowbox-js.com/index.html
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我严重建议你放弃,因为仍然使用 IE6 的人总是看到奇怪、丑陋、有裂纹的网页,但他们不在乎。您可能会花费数天的时间苦苦思索奇怪的方法来克服一个问题,这个问题源于一个简单的事实:ie6 根本不是为了透明而设计的。
GIF 不适合你。想知道为什么吗?因为 gif 的不透明度要么是 100%,要么是 0%。在 Shadowbox 中,您需要中等不透明度,例如 50% 或 70%。 PNG 可能可以与 pngalpha js 脚本配合使用,但它们在用于 Shadowbox 的动画中往往会失败。
请理解我并不是在这里发火,我只是想对你说实话。
I seriously advice you to give up, because people that still use IE6 are seeing a weird, ugly, cracked web all the time and they just dont care. You may spend days struggling with weird ways of overcoming a problem that comes from the simple fact that ie6 was not made for transparency at all.
GIFs wont work for you. Wanna know why? Because opacity of gifs is either 100% or 0%. In Shadowbox you will want middle opacity, like 50% or 70%. PNGs might work with pngalpha js scripts, but they tend to fail in animations, which are used for shadowbox.
Please understand that i'm not flaming here, i'm just trying to be honest with you.