Javascript fancybox.iframe的问题

Javascript fancybox.iframe的问题,javascript,jquery,fancybox,Javascript,Jquery,Fancybox,我在尝试使用fancybox iframe显示YouTube文件时遇到问题。它显示一个带有滚动条的小框架。我已经附上了代码的链接。我正在使用YouTube API提取内容 jQuery显示为html function getOutput (item) { var videoId = item.id.videoId; var title = item.snippet.title; var description = item.snippet.description;

我在尝试使用fancybox iframe显示YouTube文件时遇到问题。它显示一个带有滚动条的小框架。我已经附上了代码的链接。我正在使用YouTube API提取内容

jQuery显示为html

function getOutput (item)
{
    var videoId = item.id.videoId;
    var title = item.snippet.title;
    var description = item.snippet.description;
    var thumb = item.snippet.thumbnails.high.url;
    var channelTitle = item.snippet.channelTitle;
    var videoDate = item.snippet.publishedAt;
    var output = '<li>' +
                     '<div class = "list-left">' +
                         '<img src="' + thumb + '">' +
                     '</div>' +
                     '<div class ="list-right">' +
                         '<h3><a class="fancybox fancybox.iframe"' + 'href="http://youtube.com/embed/' + videoId + '">' + title + '</a></h3>' +
                         '<small>By <span class="cTitle">' + channelTitle + '</span> on ' + videoDate + '</small>' +
                         '<p>' + description+'</p>' +
                     '</div>' +
                 '</li>' +
                 '<div class ="clearfix"></div>' + ' ';
    return output;
}
函数getOutput(项)
{
var videoId=item.id.videoId;
var title=item.snippet.title;
var description=item.snippet.description;
var thumb=item.snippet.thumbnails.high.url;
var channelTitle=item.snippet.channelTitle;
var videoDate=item.snippet.publishedAt;
变量输出=“
  • ”+ '' + '' + '' + '' + '' + '通过'+channelTitle+'在'+videoDate+''上'+ “”+说明+”

    ”+ '' + “
  • ”+ '' + ' '; 返回输出; }