simple use of fitVids not working?

简单的使用fitVids不工作?

问题 (Question)

I'm trying to get fitvids to resize my video to fill the parent area as much as it can. Here's my fiddle:

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

code:

$(".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>

Any idea why it's not working?

我试图让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>

知道为什么不工作吗?

最佳答案 (Best Answer)

Any idea why it's not working?

You just forgot to include jQuery in your Fiddle (under Frameworks & Extensions)

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

Any idea why it's not working?

你只是忘了包括jQuery小提琴(在框架和扩展)

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

本文翻译自StackoverFlow,英语好的童鞋可直接参考原文:http://stackoverflow.com/questions/16925980