簡體   English   中英

導致普通iframe不在php頁面上顯示的內容?

[英]Something that cause plain iframe not to show on php page?

<div class="grid-5-12">
<iframe width="200" height="120" src="http://www.saweb.info/videos/nightclub.mp4" frameborder="0"></iframe>
</div>

我從Firefox開發人員頁面源代碼的“管理頁面”直接復制了上面的代碼,它可以獨立運行,但在管理頁面本身上卻不顯示(它總是顯示)

即使沒有div,它也不會顯示。 (采用歐芹格式,並且iframe顯示“當前選定的視頻”)

在Chrome中進行了測試,當我在互聯網上找不到任何類似的錯誤時,它也不會顯示。

也許有人知道為什么iframe不出現/消失?

不用於播放視頻,而是用於顯示其他頁面。 某些瀏覽器可能支持這種導入視頻的方式。 但是正確的方法是將這樣的標記用於您的視頻鏈接。

<video width="200" height="120" controls>
  <source src="http://www.saweb.info/videos/nightclub.mp4" type="video/mp4">
</video>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM