使用iFrame将Youtube频道嵌入HTML [英] Embed a Youtube Channel into HTML with iFrame

查看:138
本文介绍了使用iFrame将Youtube频道嵌入HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将一个Youtube频道嵌入HTML页面。



例如,我拿这个频道地址: http:// www.youtube.com/aaaa



我使用以下代码:

 < HTML> 
< head>
< / head>
< body>
< iframe src =http://www.youtube.com/aaaa>< / iframe>
< / body>
< / html>

问题是它不起作用。我尝试与另一个网站,它的工作原理。可能是什么问题?

解决方案

这个问题似乎是由以下网址引起的:http://www.youtube.com/aaaa。



我尝试了一些其他网址并且它可以正常工作。



您可以轻松地尝试一些网址 here




试试这个:

 < script src =http://www.gmodules.com/ig/ ?IFR URL = HTTP://www.google.com/ig/modules/youtube.xml&安培; up_channel = AAAA&放大器;放大器; synd =开放&放大器;放大器; W = 320&放大器;放大器; H = 390&放大器;放大器;标题= &放大器;放大器;边界=%23ffffff%7C3px%2C1px +固体+%23999999&放大器;放大器;输出= JS>< /脚本> 


I'm trying to embed a Youtube channel into a HTML page.

For example I take this channel address: http://www.youtube.com/aaaa

I used this code:

<html>
<head>
</head>
<body>
    <iframe src="http://www.youtube.com/aaaa"></iframe> 
</body>
</html>

The problem is that it doesn't work. I tried with another site, and it works. What can be the problem?

解决方案

The problem seems to be induced by this URL:http://www.youtube.com/aaaa.

I tried some other URLs and it works.

You can try some URLs easily here.


Try this:

  <script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&amp;up_channel=aaaa&amp;synd=open&amp;w=320&amp;h=390&amp;title=&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

这篇关于使用iFrame将Youtube频道嵌入HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆