Getting a “The requested content cannot be loaded” with fancy box (no errors in console though)

后端 未结 3 1041
别跟我提以往
别跟我提以往 2021-01-25 11:27

I\'m using fancybox to have a simple vimeo popup: http://fancyapps.com/fancybox/

Here\'s my jQuery:

$(\".fancybox\").fancybox({
    openEffect: \'none\',         


        
3条回答
  •  萌比男神i
    2021-01-25 12:06

    There could be a few issues however I know the following should work: Change the href to:

    //player.vimeo.com/video/36031564?hd=1&autoplay=1&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    

    or

    http://player.vimeo.com/video/36031564?hd=1&autoplay=1&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    

    and add the data-fancybox-type="iframe"

    Demo: http://jsfiddle.net/lucuma/9wAdV/180/

    
    
    $(document).ready(function() {
        $('.fancybox').fancybox({
    
        });
    });​
    

提交回复
热议问题