[英]Image not displayed in firefox in html img tag
我在html頁面中有一個img標簽。 我的img源是遠程服務器上的文件。 當我嘗試將Firefox中的img渲染為
file://///server/folder1/folder2/name.jpg
它正確呈現。 但是當我嘗試將相同的url放在img標簽中時:
<img alt="" src="file://///server/folder1/folder2/name.jpg" />
它不會在Firefox中渲染。 IE可以正確呈現它。
出於安全原因,這似乎是Firefox的默認行為: http : //en.w3support.net/index.php?db=so&id=192080
在提供的鏈接上,您可以找到有關如何更改此默認行為的信息:
這可以在Firefox中關閉:
- 在地址欄中輸入“ about:config”,然后接受“我會小心的”
- 在舊版本中找到“ security.checkloaduri”或
在較新版本的Firefox中,“ security.fileuri.strict_origin_policy”和
將該值更改為“ false”- 重新啟動Firefox
那應該為你做。 您在這里有更多信息:
http://kb.mozillazine.org/Security.fileuri.strict_origin_policy http://kb.mozillazine.org/Security.fileuri.origin_policy
問候,
最高
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.