为什么requestFullScreen全屏不了???

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

 <head>

  <title> New Document </title>

  <meta name="Generator" content="EditPlus">

  <meta name="Author" content="">

  <meta name="Keywords" content="">

  <meta name="Description" content="">

 </head>


 <body>

  <script type="text/javascript">

    function fullScreen(element) {  

        if(element.requestFullScreen) {  

            element.requestFullScreen();  

        }else if(element.webkitRequestFullScreen ) {  

            element.webkitRequestFullScreen();  

        }else if(element.mozRequestFullScreen) {  

            element.mozRequestFullScreen();  

        }  

    }  

  </script>

  <a href="javascript:fullScreen(this)">123123123123</a>

 </body>

</html>


手掌心
浏览 714回答 1
1回答

红颜莎娜

A标签不支持
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript