video标签设置封面
时间: 2023-08-25 11:18:23 浏览: 361
video标签设置封面的方法是通过给poster属性赋值封面图的地址。在video标签中添加poster属性并将封面图的地址作为值赋给它即可。例如:poster="封面图地址"。这样就可以为视频设置封面图了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [video标签设置封面图、控件的显隐](https://blog.csdn.net/qq_42580876/article/details/109732326)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [video视频标签一些设置,包括封面、播放结束后的封面、视频占满屏幕的方式、视频播放暂停、展示控制栏、...](https://blog.csdn.net/qq_46617584/article/details/129185121)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文