首页 > 解决方案 > 如何使用我当前的代码将我的视频放入下拉菜单中?

问题描述

这是我当前的代码:

  <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;">&nbsp;</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>

我现在尝试了一些变体,但似乎没有一个有效。甚至可能吗?

干杯

标签: html

解决方案


推荐阅读