简体   繁体   English

在IE11上没有显示图像,但是在FF,Chrome和Edge上显示

[英]No Images are Displaying on IE11, but Display on FF, Chrome, and Edge

I am currently working on a project, built using flex, that currently for whatever reason doesn't display any of the images, minus the logo, on Internet Explorer 11. The images display correctly on Edge, Chrome, and FF. 我目前正在开发一个使用flex构建的项目,无论出于何种原因,该项目目前都不会在Internet Explorer 11上显示任何图像(减去徽标)。图像可以在Edge,Chrome和FF上正确显示。 From what I could find there is an ::after and ::before properties on the image tags with a max-width:100%, as soon as I remove the max width property the images appear, but the site alters slightly. 根据我的发现,图像标签上有一个:: after和:: before属性,其最大宽度为100%,当我删除最大宽度属性后,图像就会出现,但该站点会稍有变化。 Is there any solution to fix the image issue without removing the max-width property from the ::before and ::after? 有什么解决方案可以解决图像问题,而无需从:: before和:: after移除max-width属性?

There was a hidden max-width in the min.css file, I changed that to width instead. min.css文件中有一个隐藏的max-width,我改为将其改为width。 This however caused some further editing on the website, but after all the editing everything worked correctly. 但是,这导致在网站上进行了进一步的编辑,但毕竟编辑一切正常。

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

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