我:mozRequestFullScreen();不工作。爲什麼?
function doit()
{
document.getElementById('id1').mozRequestFullScreen();
}
但它不工作。雖然它爲this site:
jsFiddle here。
爲什麼? (我正在使用FireFox。)
我:mozRequestFullScreen();不工作。爲什麼?
function doit()
{
document.getElementById('id1').mozRequestFullScreen();
}
但它不工作。雖然它爲this site:
jsFiddle here。
爲什麼? (我正在使用FireFox。)
JSFiddle結果顯示在iframe中。除非這個框架明確允許加入全屏所mozallowfullscreen屬性將靜默失敗:
https://developer.mozilla.org/en-US/docs/HTML/Element/iframe#attr-mozallowfullscreen
什麼是調用的結果?嘗試'var result = document.getElementById('id1')。mozRequestFullScreen();'並設置一個斷點來檢查結果。 –
@PlanB'undefined'。 – ispiro