简体   繁体   English

IE11和Firefox浏览器中未显示Wordpress网站图像

[英]Wordpress Site Images not displaying in IE11 & Firefox Browser

I have an interesting problem with this website . 对此网站有一个有趣的问题。 When the site is viewed through Chrome or Safari, all images are displayed & the site appears as intended. 通过Chrome或Safari浏览该网站时,将显示所有图像,并且该网站将按预期显示。

When the site is viewed in Firefox (V54) & reportedly in IE11, neither the logo, nor any other images are visible on the page. 在Firefox(V54)和IE11中据报道查看该站点时,该徽标和任何其他图像在页面上均不可见。

When I inspect the code in Firefox, I can see the images in the code, so there isn't an inherent issue with the client device accessing the image: 当我在Firefox中检查代码时,可以看到代码中的图像,因此客户端设备访问图像没有固有的问题:

商标

头像

Any thoughts as to what would be causing this? 有什么想法会导致这种情况?

Works on my laptop. 在我的笔记本电脑上工作。 Try to clear the cache. 尝试清除缓存。

Thanks for your answers guys. 谢谢你们的回答。 Managed to fix this (which is probably why user3080315 you saw everything working OK. 设法解决了这个问题(这可能是为什么user3080315您看到一切正常的原因。

The issue was with the CSS. 问题出在CSS。 A friend spotted the problem: 一个朋友发现了这个问题:

img {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    -webkit-filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.25));
    filter: url(#drop-shadow);  
    -ms-filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
    filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
}

Should become: 应该变成:

img {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    -webkit-filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.25));
    -ms-filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
    filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
}

filter: url(#drop-shadow); 过滤器:url(#drop-shadow); being the line causing issue. 是引起问题的线路。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM