2016-03-01 88 views
2

我有一個I幀包含vameo視頻如何激活全屏幕標誌在視頻如何激活VIMEO全屏標誌,YouTube視頻中I幀

這裏是i幀的HTML其中包含視頻。

<iframe width="500" height="281" frameborder="0" src="https://player.vimeo.com/video/155984146?color=ececec&amp;title=0&amp;byline=0&amp;portrait=0;"></iframe> 
+0

請是否接受我的答案幫助=) – MKAD

+0

你的解決方案是好的,並表明我什麼必須做 –

+0

請接受我的回答,這是我驗證的,它正在工作 –

回答

2

只使用

allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen" 

您的iframe標籤下,那麼它會becom這樣

<iframe width="500" height="281" src="https://player.vimeo.com/video/155984146" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"> </iframe> 
1

嗨,你必須允許你的iframe全屏。

只需添加webkitallowfullscreen mozallowfullscreen的allowFullScreen到iframe

<iframe width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen src="https://player.vimeo.com/video/155984146?color=ececec&amp;title=0&amp;byline=0&amp;portrait=0;"></iframe>