Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox won't open localhost files, it downloads the file instead and then won't show images, IE9 localhost works fine.

  • 5 个回答
  • 8 人有此问题
  • 252 次查看
  • 最后回复者为 wolfenr
  • 已存档

I have installed XAMPP to preview web pages locally. Everything works fine in IE9 but not in Firefox. When I load a localhost page Firefox downloads the file, then displays the downloaded file without showing images within the page.

So, in IE9 the address bar looks like this (correctly): http://localhost/my_sites/WebMaestro/Exercises/Lesson8/changeImage.html

In Firefox the address bar looks like this: file:///C:/Users/Rog/AppData/Local/Temp/changeImage-3.html

I have installed XAMPP to preview web pages locally. Everything works fine in IE9 but not in Firefox. When I load a localhost page Firefox downloads the file, then displays the downloaded file without showing images within the page. So, in IE9 the address bar looks like this (correctly): http://localhost/my_sites/WebMaestro/Exercises/Lesson8/changeImage.html In Firefox the address bar looks like this: file:///C:/Users/Rog/AppData/Local/Temp/changeImage-3.html

所有回复 (5)

Are you using a Firefox extension like Auto Save Document  ? If you are using then you need to disable it. The documents are stored as html-text only (no embedded objects like pictures etc.) As a result the images don't appear on browser.

由xr417于修改

Thanks @xr417 but no, I'm not using Auto Save Document, the only active ones are Kaspersky, Firebug and New Tab Homepage.

Restart Firefox with add-ons disabled and try to load the page again.

Thanks @xr417, all add ons are disabled but exactly the same problem.

By the way, I also uninstalled and re-installed Firefox about 24 hours ago in an attempt to resolve the problem, cleared the caches, re-booted etc. etc.