zoukankan      html  css  js  c++  java
  • fullScreen.html

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>index</title>
    </head>
    <body>
        <input type="button" value="全屏显示" onclick="fullScreen()">
    <script>
    
        function fullScreen() {
            var el = document.documentElement;
            var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen;
    
            if (typeof rfs !== "undefined" && rfs) {
                rfs.call(el);
            } else if (typeof window.ActiveXObject !== "undefined") {
                // for Internet Explorer
                var wscript = new ActiveXObject("WScript.Shell");
                    wscript.SendKeys("{F11}");
            }
        }    
        
    </script>
    </body>
    </html>
  • 相关阅读:
    DAY56
    DAY55
    DAY54
    DAY53
    DAY52
    DAY51
    DAY50
    spark1.1.0部署standalone分布式集群
    Storm流分组介绍
    Storm拓扑的并行度(parallelism)介绍
  • 原文地址:https://www.cnblogs.com/cynthia-wuqian/p/4953767.html
Copyright © 2011-2022 走看看