HTML5 video: possible to place regular html content over video

后端 未结 4 1419
星月不相逢
星月不相逢 2021-01-02 07:35

Just wondering if anyone knows any tricks to getting regular html content (mainly an img tag) to display on top of a video (via the video tag)?

4条回答
  •  礼貌的吻别
    2021-01-02 08:31

    You can simply put html elements on top of HTML5 video by positioning them absolutly on top of the video. Give both the video element and the HTML element a "position:absolute" and put the HTML element a z-index higher than the video element's.

提交回复
热议问题