Drupal Colorbox 模块和 IE
我差点把头发都拔掉了!我正在尝试让 Colorbox 在 IE7 中正确显示边框(IE6 也是如此,但我至少会使用 IE7!)。
您可以看到我所看到的 此处。单击图库中的图片或登录链接。无论哪种方式,颜色框都应该正确显示。在 FF 中工作正常,但在 IE 中边框消失。有谁知道是什么原因造成的,更好的是,如何解决它?
谢谢你!
I have about pulled out my hair on this one! I am trying to get Colorbox to display the borders properly in IE7 (IE6 too, but I'll take IE7, at the least!).
You can see what I am seeing here. Click on a picture in the gallery or on the login link. Either way, colorbox is supposed to be appearing correctly. It works fine in FF, but the borders vanish in IE. Does anyone know what is causing this and better yet, how to fix it?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它确实有效!我已经尝试了一段时间,通过在我的主题文件中进行覆盖,但我从未在 Colorbox 库的文件夹中尝试过它(我讨厌编辑核心,即使这实际上不是“核心”。)
对于未来的读者:
It did work! I have been trying that for a while by making an override in my theme file, but I never tried it in the Colorbox library's folder (I hate editing core, even though this really isn't "core.")
For future readers:
看到 colorbox.css 文件底部所有以“.cboxIE”开头的行了吗?我敢打赌,“filter: progid:DXImageTransform.Microsoft.AlphaImageLoader...;”财产是问题。我之前在 IE7 上遇到过非常类似的问题 - 它具有适当的属性来修复 IE 的透明 PNG 问题,但它仍然损坏。如果你想让它在 IE6 中看起来不错,你必须使用另一个 PNG 修复程序,但在我取出 colorbox.css 底部的所有“.cboxIE”类后,colorbox 没有任何问题。或者,至少是过滤器属性 - “背景:透明;”或许可以留下来。
希望有帮助!
See all those lines starting with ".cboxIE" at the bottom of the colorbox.css file? I'd bet money on the fact that the "filter: progid:DXImageTransform.Microsoft.AlphaImageLoader...;" property is the issue. I had a very similar issue with IE7 before - it has that property in place to fix issues with transparent PNGs for IE, but it's still broken. If you want it to look good in IE6, you'll have to use another PNG fix, but I haven't had any issues with colorbox after I took out all of the ".cboxIE" classes at the bottom of colorbox.css. Or, at least the filter property - the "background: transparent;" can probably stay.
Hope that helps!