谷歌、火狐全屏:
1 addEventListener("click", function() { 2 var 3 el = document.documentElement 4 , rfs = el.webkitRequestFullScreen 5 || el.mozRequestFullScreen 6 ; 7 rfs.call(el); 8 });
javascript codes,布布扣,bubuko.com
原文:http://www.cnblogs.com/alex-wood/p/3752414.html