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

后端 未结 3 1051
别跟我提以往
别跟我提以往 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条回答
  •  死守一世寂寞
    2021-01-25 12:00

    You just need two more things:

    1). add the fancybox-media helper js file like (check your own path):

    
    

    2). add the helpers media option to your script:

    $(".fancybox").fancybox({
        openEffect: 'none',
        closeEffect: 'none',
        padding: 0, //<-- notice I added a comma here ;)
        helpers : {
         media : {}
        }
    });
    

提交回复
热议问题