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
文章目录
关闭
共有 0 条评论