jquery 滑块在 Chrome 中无法正常工作
这是一个现场演示: http://sp.smartclientdemo.com/index.php /portfolio?id=commercial
点击最后一个缩略图就可以看到问题。在 Chrome 中,缩略图和导航箭头之间存在间隙。 它在 Firefox 中运行良好。轮播包含在此
内:<ul id="pikame" class="pika-thumbs jcarousel-list jcarousel-list-horizontal" style="overflow: hidden; position: relative; top: 0px; left: -315px; margin: 0px; padding: 0px; width: 1155px;">
点击其他缩略图(例如左侧的缩略图)在 Chrome 中正常工作,但轮播的行为不一致。 这是问题的屏幕截图。
您能给我建议如何解决 chrome 中的问题吗?
谢谢, 动画
Here is a live demo: http://sp.smartclientdemo.com/index.php/portfolio?id=commercial
The problem can be seen by clicking on the last thumbnail. In Chrome the gap is coming between the thumbnail and navigational arrows. It working fine with Firefox. The carousel is contained inside this <ul>
:
<ul id="pikame" class="pika-thumbs jcarousel-list jcarousel-list-horizontal" style="overflow: hidden; position: relative; top: 0px; left: -315px; margin: 0px; padding: 0px; width: 1155px;">
Clicking on other thumbnails, for example ones to the left, are working properly in Chrome and the carousel is behaving inconsistently. Here is a screenshot of the problem.
Could you please give me suggestion how to solve problem in chrome.
Thanks,
Animesh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我查看了你的代码,现在总共包含了三个 jQuery,其中两个位于开头:
最后一个也包含了两次。另一次,它包含在“pikachoose”开始的源代码末尾。
第一个是非常旧的 jQuery 版本 1.2.1,最后一个似乎是 1.5。您应该检查您的轮播插件支持哪个 jQuery 版本并使用它,或者然后尝试它是否可以与最新的 jQuery 版本一起正常工作。
我相信错误可能是 Firefox 和 chrome 如何处理这些多次包含的 jquery,并且可能是 chrome 使用旧版本而 Firefox 使用较新版本。如果删除多余的 jQuery 后问题仍然存在,您还应该告诉您正在使用的 Firefox 版本和 chrome 版本。
I looked at your code and there are now three jQuerys included total and two are at the beginning:
Also the last one is included twice. The other time its included at the end of the source where the "pikachoose" starts.
The first one is very old jQuery version 1.2.1 and the last one seems to be 1.5. You should check what jQuery version your carousel plugin supports and use that, or then try if it works fine with newest jQuery version.
I believe the error might be how firefox and chrome handles these multiple times included jquerys and it MIGHT be that chrome uses the older and firefox newer version. You should also tell what firefox version and chrome version you were using if the problem persists after deleting the extra jQuerys.
这是一个完整的演示,使用您的资源,但删除了所有额外的库。它在 Chrome 13 和 Firefox 4 中按预期工作。
注意:由于 JavaScript 中的标记,它不是一个完全有效的演示;但已经足够接近了。
Here is a complete demo using your resources that works but with all the extra libraries removed. It works as expected in Chrome 13 and Firefox 4.
Note: It is not a completely valid demo, due to the markup in the JavaScript; but it's close enough.