IE9 问题 - 似乎我的滑块甚至无法滑动。什么给?
我有一个网站 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我必须挖掘一下,但我现在看到了问题。当 AnythingSlider 初始化时,它位于一个空列表中(我认为
也不是真正有效的,将其留空或使用
>):
这很好,但是在初始化回调中,当前页面未定义,因为没有页面:
caption 函数:
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/>
):which is fine, but then in the initialization callback, the current page is undefined because there are no pages:
caption function:
The
slider1.$currentPage
is undefined, and even theslider1.currentPage
value is zero.So, either remove the
onInitialized
functions, or update the caption after the slider gets updated with content.