jQuery循环插件,在IE中具有透明性 [英] jQuery cycle plugin with transparency in IE
问题描述
经过大量搜索,我设法找到了这两个Cycle插件选项,以允许Internet Explorer cleartype: true, cleartypeNoBg: true,
After much searching I managed to find these two Cycle plugin options to allow for transparency in Internet Explorer cleartype: true, cleartypeNoBg: true,
我现在遇到的问题是,在跳动过渡期间出现在图像周围的黑色块状物体,而不是在过渡完成且图像位于框架中时被移除.这仅在IE上发生.
The problem I'm getting now is a black block thing around the image that appears during the bounce transition than gets removed once the transition is complete and the image is sitting in the frame. It's only happening on IE.
关于如何解决此问题的任何想法?
Any ideas on how to fix this?
推荐答案
阅读文档似乎 clearTypeNoBG 与您的想法相反:它告诉插件在IE下不针对透明性进行更正.保留为假.自动为 cleartype 分配值!$.support.opacity ,并且也应将其保留为空.
Reading the documentation it seems that clearTypeNoBG does the opposite of what you think: it tells the plugin to NOT correct for transparency under IE. Leave it on false. cleartype is automatically assigned the value !$.support.opacity and should also be left alone.
换句话说,通过在<上设置 cleartype (即!$.support.opacity ),告诉插件浏览器不支持不透明. em> true ,然后通过将 clearTypeNoBG 设置为true来告诉它不纠正此缺点.
In other words, you're telling the plugin that the browser doesn't support opacity by setting cleartype, which is !$.support.opacity, on true and then you're telling it to not correct for this shortcoming by setting clearTypeNoBG on true.
这篇关于jQuery循环插件,在IE中具有透明性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!