Image over a video (html5)

后端 未结 5 345
感情败类
感情败类 2021-01-12 23:42

I\'m trying to display an image over a video (html5). If I put an instead of the video ... it works but when I put a the video is over the image :/ What could I do ?

5条回答
  •  别那么骄傲
    2021-01-13 00:06

    Link: http://jsfiddle.net/kNMnr/1487/

    Use position in CSS3 with z-index.

      
    Logo

    CSS:

    #video_box {
        position:relative;
    }
    #video_overlays {
        position:absolute;
        width:160px;
        min-height:40px;
        background-color:#dadada;
        z-index:300000;
        bottom:10px;
        left:10px;
        text-align:center;
    }
    

提交回复
热议问题