Tag: 内容处置

强制打开“另存为…”popup在文本链接打开点击在HTML中的PDF

我在我的网站有一些大尺寸的pdf目录,我需要链接这些下载。 当我Googlesearch时,发现了下面这样的事情。 它应该打开“ 另存为… ”popup链接点击.. <head> <meta name="content-disposition" content="inline; filename=filename.pdf"> … 但它不起作用:/当我链接到文件如下,它只是链接到文件,并试图打开文件。 <a href="filename.pdf" title="Filie Name">File name</a> 更新(根据下面的答案): 正如我所看到的,没有100%可靠的跨浏览器解决scheme。 可能最好的方法是使用下面列出的Web服务之一,并提供下载链接… http://box.net/ http://droplr.com/ http://getcloudapp.com/