iframe 引用播放器自适应16:9代码

<!-- padding-top calculation is height / width (assuming 16:9 aspect ratio) -->
<div style="position: relative; padding-top: 56.25%">
  <iframe
    src="https://test.com/iframe"
    style="border: none; position: absolute; top: 0; height: 100%; width: 100%"
    allowfullscreen="true"
  ></iframe>
</div>

预览效果可看:https://jiejie.uk/blog/archives/193.html

版权声明:
作者:姐姐
链接:https://jiejie.uk/blog/archives/507.html
来源:姐姐的个人博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>
文章目录
关闭
目 录