2012-10-19 164 views
0

中的iFrame鏈接如何設置此鏈接如下:使用iFrame但是沒有視頻本身, <a href="link.html">

採訪視頻

這裏是一個iframe的有如下:

<iframe width="400" height="225" src="http://www.youtube.com/embed/G_G8SdXktHg" frameborder="0" allowfullscreen></iframe> 

在此如下:

<div class="toogle_wrap_intro"> 
    <div class="trigger"><a href="#">Browse video categories</a></div> 
    <div class="toggle_container_video"> 
     <ul class="lists_video"> 
     <li><a href="#"><a href="video/aps_production.mp4"><p>Interview video</span></p></a></li> 
     </ul> 
    </div> 
    </div> 

這是iPhone和jQuery1.8.1。通過下拉菜單設置視頻鏈接的正確方法是什麼?當視頻播放完畢後,它將返回到同一頁面。

+0

你通過「收編」的意思是什麼? –

+1

爲什麼要將iframe設置爲視頻文件? – epascarello

回答

1

我猜你正在使用一個框架,因爲你想把視頻放在某個地方?我建議在HTML5中使用<video>標記而不是iframe。

<video width="400" height="225" controls="controls"> 
    <source src="video/aps_production.mp4" type="video/mp4"> 
Your browser does not support the video tag. 
</video> 
0

給的iframe的ID和目標是在鏈接的URL:iframe id="iframe"然後追加#iframe到文檔的鏈接中的URL a href="url.html#iframe"

+0

謝謝艾伯特。你能把它和代碼中的例子放在一起嗎?上面的 – Irishgirl

+0

是一個例子....沒有你的網址,我不知道它是什麼.... – albert