直接在a标签中写路径
在路径的php代码中包含如下就行。
<?php // 输出 PDF 文件 header('Content-type: application/pdf'); // 名称为 downloaded.pdf header('Content-Disposition: attachment; filename="downloaded.pdf"'); // 该 PDF 来源于 original.pdf readfile('original.pdf'); ?>