html - 如何使用我当前的代码将我的视频放入下拉菜单中?
问题描述
这是我当前的代码:
<div style="width: 640px; height: 480px; position: relative;">
<iframe src="https://drive.google.com/file/d/LINKTOMYFILE/preview" width="640" height="480" frameborder="0" scrolling="no" seamless=""></iframe>
<div style="width: 80px; height: 80px; position: absolute; opacity: 0; right: 0px; top: 0px;"> </div>
</div>
如何将其包装到这种下拉菜单中?
<p style="text-align: center;"><select style="margin: 5px auto; width: 146px;" onchange="document.getElementById('11qq').src=this.options[this.selectedIndex].value;">
<option value="VIDEOLINK1">Video1</option>
<option value="VIDEOLINK2">Video2</option>
</select></p>
<p style="text-align: center;"><iframe id="11qq" src="START VIDEO" width="960" height="540" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
我现在尝试了一些变体,但似乎没有一个有效。甚至可能吗?
干杯
解决方案
推荐阅读
- sql - 自定义订单 - Oracle SQL
- context-free-grammar - 消除 epsilon 产生式
- javascript - Switch(true) 总是显示默认情况
- google-cloud-platform - 如何轮换服务帐户密钥并将新密钥复制到云存储
- dart - 使用参数(颤振)为每个网格视图增加计数器
- c# - 托管 C# Telegram Bot
- python - 替换字符串中的特定控制/不可打印字符
- generics - C#:通过开放泛型方法/类构造开放泛型接口的类型约束半封闭泛型实现
- xml - 在颤动中打印时不完整的http响应正文
- c++ - C++17 (std::filesystem) 是否提供与 Boost.Filesystem 相同的错误代码