全屏展示

Posted justsmile2

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了全屏展示相关的知识,希望对你有一定的参考价值。

技术图片
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <button onclick="fullScreen()">???????????</button>

        <button onclick="exitScreen()">???????????</button>

        <button onclick="iefull()">??汾ie???</button>
    </body>
    <script src="js/jquery-2.1.1.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
        //???
        function fullScreen()
            var el = document.documentElement;
            var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullscreen;      
                if(typeof rfs != "undefined" && rfs) 
                    rfs.call(el);
                ;
              return;
        
        //??????
        function exitScreen()
            if (document.exitFullscreen)   
                document.exitFullscreen();  
              
            else if (document.mozCancelFullScreen)   
                document.mozCancelFullScreen();  
              
            else if (document.webkitCancelFullScreen)   
                document.webkitCancelFullScreen();  
              
            else if (document.msExitFullscreen)   
                document.msExitFullscreen();  
             
            if(typeof cfs != "undefined" && cfs) 
                cfs.call(el);
            
        
        //ie??汾??????????????????????
        function iefull()
            var el = document.documentElement;
            var rfs =  el.msRequestFullScreen;
            if(typeof window.ActiveXObject != "undefined") 
                //?????? ???f11?????????????
                var wscript = new ActiveXObject("WScript.Shell");
                if(wscript != null) 
                    wscript.SendKeys("F11");
                
            
        
        //???ie????ActiveX??????????ie????????????????? ??δ??????????н????ActiveX????????????н???? ?????????
    </script>
</html>
View Code

 

以上是关于全屏展示的主要内容,如果未能解决你的问题,请参考以下文章

带有透明状态栏的全屏片段(以编程方式)

Android 全屏片段不显示导航和状态栏后面的元素

给echarts加个“全屏展示”

微信公众号开发--视频不全屏展示

状态栏在全屏对话框片段android中将其颜色更改为黑色

Android:是不是可以将两个全屏片段链接到一个活动(只使用一个,但选择正确的一个有逻辑)?