video和audio标签的下载按钮
时间: 2023-10-15 13:31:23 浏览: 122
video和audio标签在谷歌浏览器上自带下载按钮。如果你不想显示下载按钮,可以通过在标签上添加controlsList="nodownload"来关闭下载按钮。比如,在video标签或audio标签上添加controlsList="nodownload"属性即可。示例如下:
<video src="videoUrl" controlsList="nodownload" controls="controls"></video>
<audio src="audioUrl" controlsList="nodownload" controls="controls"></audio>
这样做可以禁用视频或音频标签的下载按钮,让用户无法下载媒体文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [关于HTML5的audio标签和video标签删除下载图标](https://blog.csdn.net/rocling/article/details/81949028)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [【JavaScript源代码】jQuery实现简单弹幕制作.docx](https://download.csdn.net/download/mmoo_python/72280121)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文