[英]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.