阅读:3172回复:6
Firefox能否提示在网页中有无法访问的图片?比如显示红叉叉符号
我经常逛国外论坛,有的时候,找论坛的帖子里面用户贴了一些图片,可是这些图片由于所在的服务器被墙了或者别的啥原因,在帖子里面就显示不出来,这种情况下,firefox只是简单的现实一个比较小的空白区域,让我很难知道这个地方存在一个无法显示的图片。
请问有什么办法,可以让firefox在无法显示的图片的地方给个红叉叉之类的东西? 举例说明,某帖子有个内容如下: I have a question regarding the behavior of code folding with brace completion. When auto brace completion is on, everything is fine, so far as I know. But if auto brace completion is off, it messes with the code folding when you type an opening brace '{'. Here is a simple program below to just illustrate it. First, start with a normal program. [IMG]http://imageshack.us/a/img203/4496/xljm.png[/img] Then, do a couple of folds. [IMG]http://imageshack.us/a/img689/2474/zioj.png[/img] 。。。 但是实际显示的结果如下: 描述:对于无法显示的图片,firefox无法显示任何提示 图片:2013-07-29 17 06 53.png ![]() |
|
|
1楼#
发布于:2013-07-29 17:02
这个行不?
http://userstyles.org/styles/17978/show ... aceholders 或这个GM脚本: http://userscripts.org/scripts/show/23775 Firefox 不爱显示缺失图片的占位符,总是在图片不存在时候显示ALT 文字。 |
|
|
2楼#
发布于:2013-07-29 17:02
Ok,我找了一下,找到一个方法,似乎还不错:
http://gavtaylor.co.uk/blog/enable-brok ... in-firefox 我看有人已经把这个方法做成了一个脚本了,在这里: Show broken image placeholders for Greasemonkey 使用了一下,不错,下面是效果图: 描述:使用脚本后,可以显示一个图标了。 图片:2013-07-29 17 24 48.png ![]() |
|
|
3楼#
发布于:2013-07-29 17:02
fang5566:这个行不? 多谢大牛,你提供的这个方法我还真不知道怎么用,在你给我回复的时候,我找到了一个使用GreaseMonkey里面的脚本的方法。谢谢。 |
|
|
4楼#
发布于:2013-07-29 17:02
看代码,你的脚本和我给的样式代码基本是一样的。呵呵。我那个style样式可以装 stylish 扩展来安装。
|
|
|
5楼#
发布于:2013-07-29 17:02
/*未载入图片显示断裂标志*/ @-moz-document url-prefix(http), url-prefix(file) { img:-moz-broken{ -moz-force-broken-image-icon:1; width:24px; height:24px; } } |
|
|
6楼#
发布于:2013-07-29 17:02
补充一句
css版可以直接写入usercontent.css,不用额外扩展 |
|
|