为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Why firefox doesn't show placeholder/icon for broken images?

more options

My question is exactly like these posts:

https://support.mozilla.org/en-US/questions/1047715 https://support.mozilla.org/en-US/questions/1016612

In both of them, selected answer refers to the following link which is not available now:

http://megashare.altervista.org/blog/2012/08/enable-broken-image-placeholders-in-firefox/

I want to know how can I enable broken image icon in firefox. Note that "browser.display.show_image_placeholders" is true in my browser.

My question is exactly like these posts: https://support.mozilla.org/en-US/questions/1047715 https://support.mozilla.org/en-US/questions/1016612 In both of them, selected answer refers to the following link which is not available now: http://megashare.altervista.org/blog/2012/08/enable-broken-image-placeholders-in-firefox/ I want to know how can I enable broken image icon in firefox. Note that "browser.display.show_image_placeholders" is true in my browser.

由je.nickp于修改

所有回复 (5)

more options

Which page is giving you a problem? When I try the missing file and corrupted file scenarios, I get a placeholder.

https://www.jeffersonscher.com/res/brokenimg.html

more options

You may not see a placeholder if the image dimensions are unknown and not specified in the image tag or via CSS or there is an alt attribute..

more options

I forgot about the alt="alt text" issue. When I add that to my test page, the placeholders are replaced by the alt text (naturally).

more options

jscher2000 said

I forgot about the alt="alt text" issue. When I add that to my test page, the placeholders are replaced by the alt text (naturally).

I think it is not natural. Chrome shows icon AND alt text together. I want such behavior in firefox.

more options

One workaround would be to apply the style rule from the lower part of the demo page, or a variation of the rule, to all pages. This can be done using either an add-on such as Stylus or by creating an optional userContent.css file.

Or if you aren't in a hurry, you can submit comments and suggestions for feature changes through one or more of the following links: