我在我的网站上使用以下jQuery插件。 (http://jqueryfordesigners.com/demo/plugin-slide-demo.html)。现在,如果您仔细检查演示滑块,则每次打开标题元素时,底部都会看到轻微的凹凸。现在,我的网站上出现了同样的问题,除了跳动更糟。

如何最小化/消除这种影响?初始化代码为:

$(function () {
    $('UL.drawers').accordion({
        // the drawer handle
        header: 'H2.drawer-handle',

        // our selected class
        selectedClass: 'open',

        // match the Apple slide out effect
        event: 'mouseover'
    });
});


另外,如何更改上面的代码,以便当我不将鼠标悬停在任何标题元素(标签)上时,“抽屉”关闭。

谢谢

最佳答案

没有代码进行测试很难说,但这可能是jQuery animation jump problem的情况。

关于javascript - jQuery函数反弹元素-不太平滑,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8803575/

10-11 03:53
查看更多