HTML视频到图像IFrame



我正在一个WordPress网站上工作,试图添加一个iframe来显示视频,然后添加一个图像,但图像没有出现这是我的代码

<div style="width:100%;height:0px;position:relative;padding-bottom:74.841%;">
<iframe src="https://streamable.com/e/hzwvry?autoplay=1&nocontrols=1&loop=0" frameborder="0" width="100%" height="100%" allowfullscreen allow="autoplay" name="Video" style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden;">
</iframe>
</div>

<div style="width:100%;height:0px;position:relative;padding-bottom:74.841%;">
<iframe src="https://postimg.cc/ctgJQsGf" name="Foto">
</iframe>
</div>

在此代码中:

<div style="width:100%;height:0px;position:relative;padding-bottom:74.841%;"><iframe src="https://postimg.cc/ctgJQsGf"> name="Foto"
</iframe></div>

您已经将div的高度设置为"0px"。将其更改为其他值(最好为"auto"(。

最新更新