搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Why doesn't the download attribute work?

  • 2 回覆
  • 1 有這個問題
  • 15 次檢視
  • 最近回覆由 jscher2000

more options

The download attribute in the <a> tag doesn't work, which means I won't be able to make websites with download links. Please fix that.

所有回覆 (5)

more options

The download attribute should work in Firefox, as shown here. I've used this attribute in a number of websites without issue.

Do you have the source code or a live demo that we can look at to see if there's an issue with your code?

有幫助嗎?

more options

有幫助嗎?

more options

有幫助嗎?

more options

有幫助嗎?

more options

Please check the Notes box for the download attribute here and see whether those situations apply to your link:

https://developer.mozilla.org/docs/Web/HTML/Element/a#Attributes

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題