我的代码中有一个标签,我从youtube来源复制了整个代码,我想知道为什么我的iframe无法读取代码并且不显示视频
<iframe src="http://www.youtube.com/embed/eMobfjIsOfk" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" width="560" height="315" frameborder="0"></iframe>
答案 0 :(得分:0)
您应该通过https
加载它工作示例-jsfiddle
<iframe src="https://www.youtube.com/embed/eMobfjIsOfk" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" width="560" height="315" frameborder="0"></iframe>