2014-12-05 71 views
2

我有这个下面的代码,但它并没有在iPad上的jquery不改变IFRAME HTML

$('#video_container').html('<iframe width="560" height="335" src="'+URL+'" frameborder="0" allowfullscreen>'); 

的工作,但它的工作原理

$('#video_container').html('<p>Hello world!!</p>'); 

上面的代码适用于所有浏览器虽然是在所有台式机。

任何人都可以请给我任何提示/建议。提前感谢。

+0

请任何人都可以告诉我原因。谢谢。 – Raj 2014-12-05 18:02:57

+0

http://stackoverflow.com/questions/6666423/overcoming-display-forbidden-by-x-frame-options#answer-7469997 – 2014-12-08 19:06:43

+0

我测试了它,它工作得很好。你确定你试图嵌入的链接有一个有效的“X-Frame-Options”属性吗? – Chaitanya 2014-12-14 14:13:44

回答

0

您是否尝试过没有“allowfullscreen”?

$('#video_container').html('<iframe width="560" height="335" src="'+URL+'" frameborder="0">');