本地网络共享的 HTML 链接 [英] HTML links to local network shares
本文介绍了本地网络共享的 HTML 链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么这些链接不起作用?如果我在 FF 或 Chrome 中点击它们,没有任何反应 - 它甚至不会尝试打开它们!
Why do these links not work? If I click on them in FF or Chrome, nothing happens - it doesn't even try to open them!
<a href="file://someshare/dir/subdir/file.txt">Linky</a>
<a href="file:////someshare/dir/subdir/file.txt"> Linky</a>
<a href="file://\somesharedirsubdirfile.txt">Linky</a>
有什么想法吗?
推荐答案
一般来说,这是禁用的,因为它存在安全风险.另见这个问题:跨浏览器链接到本地系统上的文件,以及sleske 提供的链接 这里.
In general, this is disabled because it is a security risk. See also this question: Cross-browser link to file on local system, and the link provided by sleske to here.
这篇关于本地网络共享的 HTML 链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文