Modernizr a-download for download attribute does not work in IE, Safari and and Opera?

淺唱寂寞╮ 提交于 2019-12-24 03:45:07

问题


I downloaded this Modernizr snippet http://modernizr.com/download/#-a_download (found under Non-core detects) and added it in the <head>.

My html markup looks like this:

<a href="test.jpg" download="test.jpg">Download file</a>

In Firefox and Chrome, download attribute is supported even without using Modernizr.

Modernizr's a-download is not supported by IE, Safari and Opera? Has anyone tried this before and got this working some other way?

来源:https://stackoverflow.com/questions/18681644/modernizr-a-download-for-download-attribute-does-not-work-in-ie-safari-and-and

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!