HTML video poster property
Examples
Video preview with the player:
<video controls
poster="../images/w3html5.gif">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
您的浏览器不支持 video 标签。
</video>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
您的浏览器不支持 video 标签。
</video>
try it"
Browser Support
All major browsers support the poster property.
Note: Internet Explorer 8 and earlier versions of IE do not support the <video> tag.
Definition and Usage
Poster image attribute specifies the video display download, or the user clicks the play button in the image currently displayed.
Differences between HTML 4.01 and HTML5
<Video> tag is the new HTML5 tags.
grammar
<video poster="URL">
Property Value
值 | 描述 |
---|---|
URL | 指定图片文件的URL。 可能值:
|
HTML <video> tag