【问题标题】:simple use of fitVids not working?简单使用 fitVids 不起作用?
【发布时间】:2013-05-31 07:55:06
【问题描述】:

我正在尝试让 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>

知道为什么它不起作用吗?

【问题讨论】:

    标签: jquery html css fitvids


    【解决方案1】:

    Any idea why it's not working?

    您只是忘记在 Fiddle 中包含 jQuery(在 Frameworks & Extensions 下)

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

    【讨论】:

    • 这是 OP 问题的正确答案。但是,如果您像我一样试图弄清楚这一点,请不要忘记检查以确保您有 .fitVids() with camelCase,而不是 fitvids()
    猜你喜欢
    • 1970-01-01
    • 2010-12-28
    • 1970-01-01
    • 2017-09-23
    • 2011-12-02
    • 2021-03-11
    • 2021-05-18
    • 2018-11-14
    • 2017-05-19
    相关资源
    最近更新 更多