给video添加封面,并可以点击播放:
先给video添加“poster”属性,再添加js。
<video src="" controls="controls" id='videoId' height="" poster="images/video_03.jpg"> ></video>
var video=document.getElementById('videoId');
video.onclick=function(){
this.play();
}