jQuery cycle plugin paging + CSS3PIE

▼魔方 西西 提交于 2019-12-24 11:13:03

问题


I am using the jQuery cycle plugin for a slideshow of images. With rounded bullets as pagers (because it's all the rage now so it seems). This worked perfectly in the 'modern' browsers except for IE. It is messing up the activePagerClass on the pagers.

Because IE can't do border-radius, I use the CSS3PIE behavior.


回答1:


Changing

$.fn.cycle.updateActivePagerLink = function(pager,currSlide,clsName){
    $(pager).each(function(){
        $(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);
     });
);

in the jQuery source code to

$.fn.cycle.updateActivePagerLink = function(pager,currSlide,clsName){
    $(pager).each(function(){
        $('a',this).removeClass(clsName).eq(currSlide).addClass(clsName);
    });
);

fixed it.

So it seems there is an issue with the children() function and the use of CSS3PIE. I'm not a fan of the behavior property and I would rather not use it, but the client wants rounded bullets in IE...

So I hope it helps somebody.



来源:https://stackoverflow.com/questions/6499258/jquery-cycle-plugin-paging-css3pie

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