谷歌、火狐全屏:
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
时间: 2024-08-02 10:58:17
谷歌、火狐全屏:
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