0

Using FANCYBOX 2, I'd like to have images and youtube embeds in the same gallery.

Having the url of the image as the href value works fine for images, but my issue is that I don't know what value to assign the video objects for them to open as iframe videos.

4

1 回答 1

-1

找到了解决方案……</p>

  1. 将此类添加到链接元素:fancybox.iframe
  2. 为元素的 href 赋值:http ://www.youtube.com/embed/YOUR_VIDEO_ID_HERE?autoplay=1
于 2013-03-12T18:02:55.220 回答