IE9 问题 - 似乎我的滑块甚至无法滑动。什么给?

发布于 2024-12-27 05:33:52 字数 292 浏览 1 评论 0原文

我有一个网站 www.alexjamesfraser.com。它大量使用 Anythingslider jquery 插件。它在最新版本的 Firefox 和 Chrome 下运行良好,但在 IE9 下,滑块似乎根本不起作用。我不知道为什么会这样,希望我能在这里得到一些帮助。

所以,这就是我的问题。我希望我能更具体,但我什至不知道我做错了什么。希望有人可以提供帮助,如果您需要我提供更多信息,请随时询问。

非常感谢。

I've got a site up at www.alexjamesfraser.com. It's using the Anythingslider jquery plugin big time. It works well enough under the latest versions of firefox and chrome but under IE9, the slider appears not to work at all. I have no idea why this is so and was hoping I could get some help here.

So, that's my question. I wish I could be more specific, but I'm sort of at a loss to even understand what I've done wrong. Hopefully some one can help and if you need any more information from me, please do not hesitate to ask.

Thank you very much.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

聆听风音 2025-01-03 05:33:52

我必须挖掘一下,但我现在看到了问题。当 AnythingSlider 初始化时,它位于一个空列表中(我认为 也不是真正有效的,将其留空或使用

  • >):
  • <ul class="slider" id="slider1">
        </li>
    </ul>
    

    这很好,但是在初始化回调中,当前页面未定义,因为没有页面:

    onInitialized: function(e, slider1) {
        updateCaption1(slider1); 
    }
    

    caption 函数:

    var updateCaption1 = function(slider1){
        // slider1.$currentPage is undefined because there are no slides!
        var cap = slider1.$currentPage.find('.caption1').html();
        $('.current-caption1')
            .html(cap)
            .fadeIn(200);
    };
    

    slider1.$currentPage 未定义,甚至slider1.currentPage 值为零。

    因此,要么删除 onInitialized 函数,要么在滑块更新内容后更新标题。

    I had to dig a bit, but I see the problem now. When AnythingSlider is initialized, it's on an empty list (I don't think </li> is really valid either, leave it empty or use <li/>):

    <ul class="slider" id="slider1">
        </li>
    </ul>
    

    which is fine, but then in the initialization callback, the current page is undefined because there are no pages:

    onInitialized: function(e, slider1) {
        updateCaption1(slider1); 
    }
    

    caption function:

    var updateCaption1 = function(slider1){
        // slider1.$currentPage is undefined because there are no slides!
        var cap = slider1.$currentPage.find('.caption1').html();
        $('.current-caption1')
            .html(cap)
            .fadeIn(200);
    };
    

    The slider1.$currentPage is undefined, and even the slider1.currentPage value is zero.

    So, either remove the onInitialized functions, or update the caption after the slider gets updated with content.

    ~没有更多了~
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文