图像未在IE11上显示

时间:2015-05-24 17:43:16

标签: image http http-headers internet-explorer-11 placeholder

我使用Symfony2liip/imagine-bundle然而图片没有显示在IE11上,只显示X占位符,其他浏览器也没问题。有没有人遇到过这个?

更新

似乎IE11无法获取图像源的内容类型。基本上我使用没有扩展名Ex的图像源。 <img src="/myimage" />这对其他浏览器来说没什么问题,但对于IE11来说,它似乎无法识别文件类型。

1 个答案:

答案 0 :(得分:0)

So what I did was to remove the no-sniff directive

<IfModule mod_headers.c>
  #Header set X-Content-Type-Options: nosniff
</IfModule>

It seems that IE11 fails to get the correct content type of the image when no-sniff is turned on.