Can you explain $.fancybox.open( [group], [options] ) params and if I can add youtube link as href?

后端 未结 1 899
一生所求
一生所求 2021-01-13 12:27

I\'m reading documentation:

http://fancyapps.com/fancybox/#docs

and the $.fancybox.open( [group], [options] ) and open explanation is good, but I\'m wonderin

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 13:21

    Have you tried doing this yet?

    $(function () {
        $.fancybox.open([
            {
                type: 'iframe',
                href : 'http://www.youtube.com/embed/L9szn1QQfas?autoplay=1&wmode=opaque',                
                title : '1st title'
            }
        ], {
            padding : 0
        });
    });
    

    Working Example: http://jsfiddle.net/NDM5F/

    0 讨论(0)
提交回复
热议问题