问题
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