//全屏显示 function screenShow() { //弹出即全屏 fullScreen(); var index = layer.open({ type: 2, content: '/admin/dingshu/index2.html', area: ['100%', '100%'], maxmin: false, skin: 'screenL' }); layer.full(index); } //全屏代码 function fullScreen() { //全屏 var docElm = document.documentElement; //W3C if (docElm.requestFullscreen) { docElm.requestFullscreen(); } //FireFox else if (docElm.mozRequestFullScreen) { docElm.mozRequestFullScreen(); } //Chrome等 else if (docElm.webkitRequestFullScreen) { docElm.webkitRequestFullScreen(); } //IE11 else if (elem.msRequestFullscreen) { elem.msRequestFullscreen(); } }
共有条评论 网友评论