图像不加载在Firefox中 [英] Images not loading in firefox

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

问题描述

我可以在chrome和IE中看到图片,但是不能在Firefox中看到。

在检查图片元素时,有 display:none!important 分配给它。

不使用任何供应商的CSS或JS文件。这是纯HTML。

当我检查在Firefox中的媒体信息,我可以看到列出的图像和'块'选项没有标记。



可能是什么原因以及如何解决它。

  < UL> 
< li>
< a href =#>
< img src =images / ad1.jpg/>
< / a>
< / li>
< / ul>



更新
我在Firefox中有一个广告拦截器插件,导致这个问题。

重命名类 ads ,没有工作,但重命名图像工作。希望这有助于。

解决方案

我猜你有一个adblock扩展活动,因为你的图像嵌套在一个div与类 .ads


I can see the image in chrome and IE but not in Firefox.
On inspecting the image element, there is display:none !important assigned to it.

Not using any vendor CSS or JS files. It's plain HTML.
When I check the Media info in Firefox, I can see the image listed and the 'block' option is not marked.

What could be the reason and how to fix it.

<ul>
 <li>
   <a href="#">
     <img src="images/ad1.jpg"/>
   </a>
  </li>                    
 </ul>

UPDATE I had an ad-blocker plugin in firefox which was causing this issue.
renaming the class ads, did not work, but renaming the image worked. Hope this helps.

解决方案

I'm guessing you have an adblock extension active, since your image is nested in a div with a class of .ads

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

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