腾讯视频嵌入网页的方法 腾讯视频嵌入网页代码

首先,提供一个腾讯视频嵌入网页代码。咱们只需替换这段代码的一部分就能够了。html

<p style="text-align: center"><iframe class="video_iframe" style="z-index:1;" src="http://v.qq.com/iframe/player.html?vid=t01662frswa&amp;width=500&amp;height=375&amp;auto=0" allowfullscreen="" frameborder="0" height="375" width="500"></iframe></p>ide

找到一段腾讯视频,好比地址:3d

http://v.qq.com/boke/page/d/0/i/d0163kxz8di.html视频

这是一段《工业机器人工做场景》的视频,将这个网址的蓝色部分,替换到上面给出的代码中的红色部分,就能够了。htm

最终效果为:blog

<p style="text-align: center"><iframe class="video_iframe" style="z-index:1;" src="http://v.qq.com/iframe/player.html?vid=d0163kxz8di&amp;width=500&amp;height=375&amp;auto=0" allowfullscreen="" frameborder="0" height="375" width="500"></iframe></p>get

很简单吧!iframe

下面是腾讯视频嵌入网页的效果:class

相关文章
相关标签/搜索