jQuery 工具可滚动导航插件不适用于 Firefox 7
在 Mac 上使用 Firefox 7 查看 jQuery 工具的可滚动示例时,顶部导航不单击/滚动。
我已经在 Chrome、Safari 和 IE8 上测试过它,效果很好,但 Firefox 不行。
我将其范围缩小到以下代码:
.navigator({
// select #flowtabs to be used as navigator
navi: "#flowtabs",
// select A tags inside the navigator to work as items (not direct children)
naviItem: 'a',
// assign "current" class name for the active A tag inside navigator
activeClass: 'current',
// make browser's back button work
history: true
})
看起来与 navigator
插件有关的任何内容都不会被触发。我用了Firebug,没有任何反馈。
有什么想法吗?
When viewing jQuery Tool's Scrollable Example with Firefox 7 on a Mac, the top navigation does not click / scroll.
I've tested it with Chrome, Safari and IE8 and it works well, just not Firefox.
I've narrowed it down to the following code:
.navigator({
// select #flowtabs to be used as navigator
navi: "#flowtabs",
// select A tags inside the navigator to work as items (not direct children)
naviItem: 'a',
// assign "current" class name for the active A tag inside navigator
activeClass: 'current',
// make browser's back button work
history: true
})
It looks like anything that has to do with the navigator
plugin doesn't get fired. I used Firebug and it has no feedback.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将历史记录设置为 false 或仅删除历史记录选项,它应该可以工作!希望您不太介意保持历史记录/后退按钮正常工作......
Set history to false or just remove the history option and it should work! Hope you don't mind much about keeping history/back button working...
这确实有效,您可以保留历史记录功能。我在帮助论坛中找到了这个:
在你的 jQuery 工具 JavaScript 文件中查找:
替换为:
实际功劳应该归于找到解决方案的人:
http://flowplayer.org/tools/forum/55/83477
This actually works and you can keep your history functionality. I located this in the help forums:
Inside your jQuery tools JavaScript file find:
replace with:
Actual credit should go to the person who found the solution:
http://flowplayer.org/tools/forum/55/83477