2013-08-28 61 views
1

我使用Youtube推荐的方法嵌入了代码,但全屏功能根本不起作用。所以我尝试添加mozallowfullscreen,webkitallowfullscreen等,但仍然没有运气。嵌入式Youtube iFrame全屏按钮不起作用

<iframe src="http://www.youtube.com/v/16N8Zhhhins?rel=0&hl=en&fs=1&autoplay=1" frameborder="0" width="100%" height="100%" id="listing_detail_youtube" mozallowfullscreen webkitallowfullscreen allowfullscreen="1"></iframe> 

在情况下,它可以帮助..文档类型等开头是:对的iFrame

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" style="overflow-x: hidden"> 
<head> 

CSS,如果它可以帮助...

#listing_detail_youtube { 
    width:100%; 
    height:100%; 
    margin:0px; 
    padding:0px; 
} 

不过。当我单独复制粘贴视频iframe URL并在Firefox,Chrome等上打开它时,全屏仍然不起作用,所以我怀疑问题在标记内。

回答