2014-03-06 21 views
0

我正在使用Foundation 4和Reveal模式功能。 我可以用youtube視頻顯示iframe,但我無法在iframe中顯示其他網站。 任何想法jQuery Reveal模式不支持Iframe?

http://jsfiddle.net/3Jrch/

<div data-reveal class="reveal-modal" id="videoModal"> 
    <h2>This should have iframe</h2> 
    <div class="flex-video" style="display: block;"> 
    <iframe width="420" height="315" frameborder="0" allowfullscreen="" src="https://www.google.com" data-src="https://www.google.com"></iframe> 
    </div> 

    <a class="close-reveal-modal">×</a> 
</div>  <a class="radius button" data-reveal-id="videoModal" href="#">Example Modal w/Video…</a> 

回答

0

這是一個已知的問題與Google本身。

Refused to display 'https://www.google.com.sg/?gfe_rd=cr&ei=tqgYU7_aEqm9iAfOkoGoDg' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' 

你可以看到這個已知的問題在這裏的更多信息:Overcoming "Display forbidden by X-Frame-Options"

嘗試使用其他頁面,例如:http://www.apple.com/

Updated Fiddle

+0

更新後的提琴不工作要麼 – SamotnyPocitac