Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Html 文件中有以下行,它显示视频源,如何在 IFrame 中将音量设置为 0?这样当页面第一次加载时,就没有声音了。
<iframe src="http://onionz.co.cc/ain.php?psid=1626397" id="player" scrolling="no" frameborder="no" align="center" Width=588 Height=351></iframe>
我可以设置 IFrame 中的“volume=0”之类的参数吗?
我怀疑这是可能的。您最多可以使系统音量或进程音量静音。但这会使整个浏览器静音,而不仅仅是 iframe!。
您可以做的是使用 javascript 来操作视频源并将其静音,而不是使用 iframe 作为您的请求。