Firefox显示破碎的图像 [英] Firefox show broken images

查看:198
本文介绍了Firefox显示破碎的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Firefox中,一个破碎的图像只是一个空白的空白。在白色背景上,没有办法区分没有图像和破碎的图像。这使得识别破碎的图像难以识别,并使它们不正确。



我如何使破碎的图像产生一个像他们在Internet Explorer中的X?解决方案

我知道这个问题是前一阵子问的,但是我在这个问题上写了一篇博客文章,认为这可能是值得的添加一个链接,以防万一遇到任何人。



编辑09/12/2013:

KatieK在答案中直接添加信息做了一个很好的说明,下面是必填项(v28a2)

<1>输入 about:config 进入您的帐户地址栏并接受警告。
$ b 2)搜索 browser.display.show_image_placeholders 并设置为 true p>

3)在 UserContent-example.css 中搜索您的Fx配置文件夹并将其重命名为 UserContent.css (如果示例文件不存在,您可以创建它)


$ b

4)将以下css添加到您的UserContent.css中,然后重新启动Firefox

 < code $ / *启用图片占位符* / 
@ -moz-document url-prefix(http),url-prefix(file){
img:-moz-broken {
-moz力破碎图像图标:1;
width:24px;
height:24px;
}
}


In firefox a broken image appears as just a blank white space. On a white background there is no way to distinguish between no image and a broken image. This makes identifying broken images difficult to recognise and makes them go uncorrected.

How do I make it so that broken images produce an X like they do in Internet Explorer?

解决方案

I know this question was asked a while ago but I wrote a blog post on this issue a while back and thought it might be worth adding a link in case anyone falls across it.

Edit 09/12/2013:

KatieK made a good point below about adding the information directly in the answer, here are the required steps to get this working, still relevant in the latest nightly build as of Dec 2013 (v28a2)

1) type about:config into your address bar and accept the warning

2) search for browser.display.show_image_placeholders and set to true

3) search your Fx profile folder for UserContent-example.css and rename it to UserContent.css (if the example file doesnt exists you can just create it)

4) add the following css to your UserContent.css and restart Firefox

/* Enable image placeholders */
@-moz-document url-prefix(http), url-prefix(file) {
  img:-moz-broken{
    -moz-force-broken-image-icon:1;
    width:24px;
    height:24px;
  }
}

这篇关于Firefox显示破碎的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆