[英]A link is showing up on the site but I can't find it inside the html. How is that possible and how can I fix it?
[英]download link in an html web site can't showing dialog box
我有一個html網站。 在這里,我需要編寫一個<a >
標記以下載PDF文件。 看我的代碼
<a href="brochure/brochure.pdf" target="_blank" ><img src="images/downloads.jpg" alt="Downloads" width="258" height="64" border="0" /></a>
但是,當我單擊下載按鈕時,將打開pdf文件。
我需要像往常一樣顯示具有保存和打開選項的對話框
請回復我...謝謝
您實際上需要強制以PDF文件下載,嘗試使用Content-Type:application / download並讓我知道其是否有效
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.