我有一个为自己创建的小型 PHP 系统。该系统包含了一些.doc和.docx文件的文件。我希望能够直接从浏览器打开它们而无需下载它们。
.doc
.docx
我创建了一个链接:<a href="file:///c:/mysite/myfile.docx">myfile</a>。但是 Firefox 没有打开链接。href="http://localhost/myfile.docx"工作正常 - 它让我下载文件。
<a href="file:///c:/mysite/myfile.docx">myfile</a>
href="http://localhost/myfile.docx"
关于如何做到这一点的任何想法?我需要更改 Firefox 选项或安全设置中的某些内容吗?
security firefox html web-application
firefox ×1
html ×1
security ×1
web-application ×1