2013-06-04 61 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