html5< a download>强制“另存为”对话 [英] html5 <a download> force "save as" dialogue

查看:142
本文介绍了html5< a download>强制“另存为”对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< pre class =snippet-code-html lang-html prettyprint-override> < html> <身体GT; < a href =https://www.google.com.ua/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png下载>下载< / A> < / body>< / html>



您好!任何强制保存的建议 - 作为图像的对话没有.htaccess?

解决方案

这是一个浏览器(chrome?)功能。



您的用户可以按照自己的意愿进行配置。





你甚至FileSaver.js都无法做任何事......


<html>
  <body>
    <a href="https://www.google.com.ua/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" download> download</a>
  </body>
</html>

Hello! Any suggestions to force save-as dialogue for image w/o .htaccess?

解决方案

This is a browser (chrome ? ) feature.

Your users may configure it as they wish.

Neither you nor even FileSaver.js can do anything about it...

这篇关于html5&lt; a download&gt;强制“另存为”对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆