zoukankan      html  css  js  c++  java
  • video1

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            <style type="text/css">
                .div2{
                    width: 600px;
                    height: 300px;
                    background: skyblue;
                }
            </style>
        </head>
        <body>
            <video width="800" height="" src="img/shiping.mp4" poster="img/timg.jpg" controls="controls"></video>
            
            <button>播放</button>
            <button class="fullscreen">全屏</button>
            
            
            
            <img src="img/timg.jpg"/>
            
            
            <div class="div2">
                <h1>helloworld</h1>
            </div>
            <script type="text/javascript">
            var v1 = document.querySelector('video')
                document.querySelector('button').onclick = function(){
                    v1.play()
                }
                
                
                document.querySelector('.fullscreen').onclick = function(){
                    v1.webkitRequestFullScreen()
                }
                
                document.querySelector('img').onclick  = function(){
                    document.querySelector('img').webkitRequestFullScreen()
                }
                
                
                document.querySelector('.div2').onclick = function(){
                    document.querySelector('.div2').webkitRequestFullScreen()
                }
                
            </script>
            
        </body>
    </html>
  • 相关阅读:
    联考20200604 T2 宝石
    联考20200604 T1 旅游
    联考20200603 T2 排列
    [HAOI2017]八纵八横
    联考20200603 T1 解码
    [POI2011]KON-Conspiracy
    CF917D Stranger Trees
    CF1278F Cards
    CF809E Surprise me!
    NOI2016 循环之美
  • 原文地址:https://www.cnblogs.com/wwthuanyu/p/10555436.html
Copyright © 2011-2022 走看看