FancyBox returning “The requested content cannot be loaded. Please try again later.” with link

前端 未结 12 2175
感情败类
感情败类 2020-12-05 13:37

I\'m using Fancybox to display inline content (a div with an image linked to a new page). The div and image display fine in the modal, but when the image is clicked to go to

12条回答
  •  独厮守ぢ
    2020-12-05 14:14

    If some of the images are showing and others are not, even though the markup is identical, then check this:

    1. Try to lowercase all the letters in the filename and in the html. Fancybox seems to be quite case sensitive.
    2. Check if the image has all the permissions allowed. I noticed my pictures didn't work properly on mobile because on my computer, everybody's permission was set to "no permission". I changed this to "read only" and it worked like a charm!

提交回复
热议问题