Fancybox不适用于?i = [英] Fancybox doesn't work with links like ?i=

查看:87
本文介绍了Fancybox不适用于?i =的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的图片库中,所有链接看起来都像这样:

In my image gallery all link looks like this:

<a class="fancybox" href="http://my.domain/gallery/?i=001"></a>

Fancybox找不到图片,并显示以下消息:无法加载所请求的内容.请稍后重试." 请提供建议

Fancybox can't find the picture, and shows me the message: "The requested content cannot be loaded. Please try again later." Please help with advice

推荐答案

在您的fancybox自定义脚本中添加type API选项并将其设置为image,例如

Add the type API option to your fancybox custom script and set it to image like

$(".fancybox").fancybox({
 "type": "image"
});

检查 http://fancybox.net/faq 第6号

这篇关于Fancybox不适用于?i =的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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