是否可以指定 ¶mters=whatever
为 <iframe>
输入内容在 CSS 中?
我想嵌入来自 archive.org 的多轨音频。例如,像这样:
<iframe src="https://archive.org/embed/art_of_war_librivox&playlist=1&list_height=200" width="100%" height="200"></iframe>
这些位在 CSS 中很容易做到
.multitrack iframe {
width: 100%;
height: 200px;
}
但是&playlist=1&list_height=200
呢? ? 必须每次都在 HTML 中完成吗?我想把它归结为:
<div class="multitrack">
<iframe src="https://archive.org/embed/art_of_war_librivox"></iframe>
</div>
我想把它嵌入到 AO3.org 上,它对我们允许使用的内容非常严格。所以这次请不要“使用这个完全不同的工具来解决您的问题!”。如果我不能用 CSS 做到这一点,我很确定我根本做不到。
最佳答案
我认为没有基于 CSS 的解决方案可以解决您的问题。
您的 &playlist=1 &list_height=200
告诉 iframed 站点本身(通过 GET 请求)您想要呈现第一个播放列表和播放列表高度为 200 像素。
关于css - 您可以在 CSS 中为 iframe 指定 &type 参数吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58478897/