jQuery cycle plugin with transparency in IE

老子叫甜甜 提交于 2019-12-04 17:54:10

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.


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.

Dave

I just did another search and came across Stack Overflow - Jquery Cycle IE7 Transparent png problem

Seems to solve it for me in IE8 using the Unit Interactive PNG fix.

filsterjisah

I edited the core of jQuery cycle and searched for function $.fn.cycle.commonReset.

I've commented out opts.cssBefore.opacity = 1;.

I know this is not the best solution but it works for me since I use the scrollHorz transition.

I was seeing white blocks during the fade transition, even though my image didn't explicitly have any transparency.

I solved the problem by using an image editor (photoshop in my case) to add a full white layer set to 2% opacity above the image. Saved it out as a jpg and the issue went away.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!