youtube iFrame is blank
youtube iFrame is blank
因此,当我尝试在我的演示站点上运行此程序时,这只是我网页上的一个空白点。它没有显示youtube或我连接到的任何网站。
<iframe width="640" height="1400" frameborder="0"
src="http://www.youtube.com/" name="iFrameSearch">
</iframe>
有没有办法在不使用Youtube API的情况下实现这一点?我强烈建议暂时不要使用API。
我今天遇到了这个问题,我的问题是HTTP与HTTPS。
如果您的页面是HTTPS,则如果它引用的是不安全的HTTP站点,则不会加载iFrame。
尝试将iFrame更改为始终为HTTPS。
有关详细信息,请参阅安全页面上iframe中的不安全内容。
<iframe width="640" height="1400" frameborder="0"
src="https://www.youtube.com/" name="iFrameSearch">
</iframe>
你可以试试这个,对我来说效果很好。
<embed
width="420" height="345"
src="http://www.youtube.com/v/XGSy3_Czz8k"
type="application/x-shockwave-flash">
</embed>
<iframe width="640" height="1400" src="http://www.youtube.com/embed/oHg5SJYRHA0?autoplay=1" frameborder="0" allowfullscreen></iframe>
请参阅此。
相关文章:
- Is onfling available for html, html5
- jQuery is not loaded
- reactRedux is not defined
- ReferenceError: cordova is not defined @ng-cordova.min.js:7
- Jquery - table.row(tr) is undefined
- contentWindow.document.body is null
- Tomcat websocket is not working
- noty.js is returning undefined
- $routeParams is undefined
- NodeJS Multer is not working
- React, Webpack: bundle.js is not generated
- jQuery is not defined - WordPress footer.php
- 谷歌地图API v3:Initial View is Fine,but Gray Box with No Map if
- imageArray[i] = imageItem is incompatible
- GAPI Is Not Defined
- Angular2 rc1, where is shims_for_IE
- Is (!~index) faster than (index === -1)?
- Node JS - Youtube API Is Blank
- youtube iFrame is blank
- Javascript: document.write(page) is blank