从youtube视频右下角点击分享获取的播放链接嵌套到自己的网站上播放失败应该怎么解决!
原分享链接:
<iframe width="800" height="500" src="https://www.youtube.com/embed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
成功播放链接:
<div class="youtube">
<iframe width="100%" class="elementor-video-iframe" src="https://www.youtube.com/embed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> </iframe>
</div>
css样式:
.youtube{padding-bottom: 57%;position: relative;}
.elementor-video-iframe{max-width: 100%;width: 100%;border: none;position: absolute;height: 100%;}
以上是编程学习网小编为您介绍的“html5从youtube分享处理的播放拦截播放失败怎么解决”的全面内容,想了解更多关于 前端知识 内容,请继续关注编程基础学习网。
织梦狗教程
本文标题为:html5从youtube分享处理的播放拦截播放失败怎么解决


基础教程推荐
猜你喜欢
- web中自定义鼠标样式将其显示为左右箭头 2023-12-11
- html5 分层屏幕适配的方法 2023-12-12
- jQuery实现的自定义轮播图功能详解 2023-12-27
- AJAX实现无刷新检测用户名功能 2023-02-13
- js跳转页面方法总结 2023-12-01
- vue项目使用websocket技术 2023-10-08
- mysql-在Yii中排序CHtml :: listData下拉列表 2023-10-26
- js控制的回到页面顶端goTop的代码实现 2023-12-20
- 基于element-ui组件手动实现单选和上传功能 2024-02-05
- CSS教程:元素层叠级别及z-index 2024-03-10