我使用Symfony2
和liip/imagine-bundle
然而图片没有显示在IE11上,只显示X
占位符,其他浏览器也没问题。有没有人遇到过这个?
更新
似乎IE11无法获取图像源的内容类型。基本上我使用没有扩展名Ex的图像源。 <img src="/myimage" />
这对其他浏览器来说没什么问题,但对于IE11来说,它似乎无法识别文件类型。
答案 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.