弹窗播放视频

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>视频播放弹窗</title>
  <style>
     /*弹窗*/
    .tc_bg{width: 100%; height: 100%; background: rgba(0,0,0,0.8); position: fixed; top: 0; left: 0; z-index: 10;}
    .tc_video{width: 800px; height: 450px; position: absolute; top: 50%; left: 0; margin: -2.11rem 0 0 0;}
    #container{width: 800px; height: 450px;}
    .dia-close{display: block; width: 0.5rem; height: 0.5rem; font-size: 0.4rem; text-align: center; line-height: 0.5rem; position: absolute; top: -0.6rem; right: 0.1rem; color: #fff; border-radius: 50%; border: 0.04rem solid #fff;}
  </style>
</head>
<body>
  
  <a href="javascript:playVideo()">点击播放视频</a>

<!-- 弹窗 视频 S -->
<div class="tc_bg" id="tcVideo" style="display:none">
    <div class="tc_video">
        <div id="container"></div>
        <a class="dia-close" href="javascript:hideBox('tcVideo');" title="关闭">×</a>
    </div>
</div>
<!-- 弹窗 视频 E -->
</body>
</html>

猜你喜欢

转载自blog.csdn.net/dxj124/article/details/81532932