gpt4 book ai didi

javascript - 壁纸.js 不工作

转载 作者:行者123 更新时间:2023-12-02 16:41:42 26 4
gpt4 key购买 nike

我发现这个插件可以让youtube视频作为背景:http://formstone.it/components/wallpaper

看起来很简单,但行不通。我也没有收到任何错误。我在 codepen 上重新创建了演示:http://codepen.io/bskousen/pen/MYyvEx

有人熟悉这个插件吗?为什么它不起作用?

在我的 codepen 中,我链接到 jquery、壁纸 js 文件、壁纸 css 文件,并添加了以下代码:

$("#element").wallpaper({
source: {
video: "//youtube.com/embed/xIuea-5m_yI"
}
});

最佳答案

在您链接的示例中,#element div 的大小为零。

在CSS中添加:

#element {
height: 400px;
}

关于javascript - 壁纸.js 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27449025/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com