FancyBox:iPAD需要DoubleClick才能推进到下一个图像 [英] FancyBox: iPAD needs DoubleClick to Advance to Next Image

查看:113
本文介绍了FancyBox:iPAD需要DoubleClick才能推进到下一个图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 http://rockcitybless.com 上有一些画廊,它们在IE中完美地工作 ,Chrome和桌面版Safari,Firefox等。

I have some galleries on http://rockcitybless.com which work perfectly in IE, Chrome and the desktop versions of Safari, Firefox and others.

但在 iPad 上第一次点击(在图片的左侧或右侧)
显示一个箭头,只有第二次点击提升形象。我需要
首先点击进入下一张图片。

But on iPad the first click (on the left or right side of the image) displays an arrow and only second click advances the image. I need the first click to advance to the next image.

我在Safari上阅读了一篇关于同一问题的帖子,修复了
以确保< a> 标签已关闭。

I read a post talking about the same issue in Safari and the fix was to ensure that <a> tags were closed.

我的< a> 标签已关闭(< / a> )并且在
里面有一个未公开的< img> 标签。
标签是通过ajax调用生成的(如果这有任何区别)。

My <a> tags are closed (</a>) and have an unclosed <img> tag inside of it. The tags are generated via ajax calls (if that makes any difference).

FancyBox是完美的!

FancyBox is otherwise PERFECT!

推荐答案

对于移动设备,你可能想尝试禁用导航箭头并改为使用按钮助手。
类似于:

For mobile devices, you may want to try disabling the navigation arrows and use the button helpers instead. something like:

$(".fancyLink").fancybox({
 arrows: false,
 closeBtn: false,
 helpers        : { 
  title : { type : 'inside' },
  buttons   : {}
 }
}); 

当然你需要加载fancybox-buttons js和css文件

of course you need to load the fancybox-buttons js and css files

这篇关于FancyBox:iPAD需要DoubleClick才能推进到下一个图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆