以html格式作为背景的视频

以html格式作为背景的视频,html,css,Html,Css,我的代码有一个问题,我提到过这个-溢出:隐藏在css中,但我的视频仍然没有显示在文本下面。我在css中提到了以下内容: fullscreen-bg { top: 0; right: 0; bottom: 0; left: 0; overflow:hidden; `enter code here`z-index: -10

我的代码有一个问题,我提到过这个-溢出:隐藏在css中,但我的视频仍然没有显示在文本下面。我在css中提到了以下内容:

fullscreen-bg {
               top: 0;
               right: 0;
               bottom: 0;
               left: 0;
               overflow:hidden;
               `enter code here`z-index: -100;
}

.fullscreen-bg__video {
                       position: absolute;
                       top: 0;
                       left: 0;
                       width: 100%;
                       height: 100%;
}

这不是我写的,但它应该给你一个大概的想法怎么做

video { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
 background: url('//demosthenes.info/assets/images/polina.jpg') no-repeat;
  background-size: cover;
  transition: 1s opacity;
}
.stopfade { 
   opacity: .5;
}
资料来源:


也共享html..或可能的话共享live link/demo或JSFIDLE..thanxYes,请共享html版本,可能还有您试图在类似JSFILDLE..html的代码游戏中使用的视频背景-我正在使用此视频:需要使用java脚本吗?