2013-06-04 49 views
2

我试图让fitvids调整我的视频以尽可能地填充父区域。这里是我的小提琴:简单使用fitVids不起作用?

http://jsfiddle.net/LkqTU/9513/

代码:

$(".video-content").fitVids(); 

HTML:

<div class='liveExample'> 

    <div class='video-content'> 
     <iframe width="200" height="113" src="http://www.youtube.com/embed/r65FgUYdBOc?rel=0" frameborder="0" allowfullscreen></iframe> 

    </div> 
</div> 

任何想法,为什么它不工作?

回答

1

Any idea why it's not working?

你刚才忘了,包括jQuery的在你的小提琴(下框架&扩展)

http://jsfiddle.net/LkqTU/9531/

+0

这是OP的问题的正确答案。但是,如果你正在试图像对待墙一样揣摩你的头,不要忘记检查以确保你有'.fitVids()'和camelCase,而不是'fitvids()'。 – squarecandy