简体   繁体   English

IE 6中的Shadowbox覆盖不透明

[英]Shadowbox overlay not transparent in IE 6

When trying to use Shadowbox with IE6 the overlay transparency simply not works, it remains completely black. 当尝试将Shadowbox与IE6配合使用时,叠加透明度根本无法工作,它会保持完全黑色。 In all other IE versions (7, 8 and 9) the overlay works just fine. 在所有其他IE版本(7、8和9)中,叠加层都可以正常工作。 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. 如果您想查看我在说什么,可以在项目的网站上测试示例,这些示例在IE 6中也无法使用。您可能会注意到按钮也没有显示,因为它们是.png图像,带有透明背景,但是可以通过创建.gif图像并将其专门设置为IE6来轻松解决。

Links: 链接:
Main page: http://www.shadowbox-js.com/index.html 主页: http : //www.shadowbox-js.com/index.html

Thanks, 谢谢,

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. 我认真地建议您放弃,因为仍然使用IE6的人们一直都在看到奇怪,丑陋,破裂的Web,而他们根本不在乎。 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. GIF不会为您工作。 Wanna know why? 想知道为什么吗? Because opacity of gifs is either 100% or 0%. 因为gif的不透明度为100%或0%。 In Shadowbox you will want middle opacity, like 50% or 70%. 在Shadowbox中,您需要中等透明度,例如50%或70%。 PNGs might work with pngalpha js scripts, but they tend to fail in animations, which are used for shadowbox. PNG可能与pngalpha js脚本一起使用,但它们在动画中往往会失败,该动画用于阴影盒。

Please understand that i'm not flaming here, i'm just trying to be honest with you. 请理解,我在这里不是在生火,我只是想对你诚实。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM