Fancybox doesn't work with links like ?i=

…衆ロ難τιáo~ 提交于 2019-12-25 01:08:24

问题


In my image gallery all link looks like this:

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

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


回答1:


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

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

Check http://fancybox.net/faq No. 6




回答2:


Would this help?

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


来源:https://stackoverflow.com/questions/10651003/fancybox-doesnt-work-with-links-like-i

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!