📜  html 链接到 pdf - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:26.094000             🧑  作者: Mango

代码示例1
Since you have not clarified for us whether you are using a local host or just viewing the text file in the browser I will assume the latter.

In this case, you would have your anchor tag and in the href attribute put the location of the file

ok
In the above example I started from my C: drive and went from there. Also you could do it as follows:

ok
This should link to the pdf file that you have in mind, as long as the resources folder and html file are in the same folder