Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我的网站上加载一些图像时,我收到以下警告:资源解释为图像,但使用 MIME 类型图像/x-png 传输:
有谁知道这意味着什么?
对不起,我的误解...您正在显示图像,但服务器不理解图像的扩展名并返回默认的 MIME 类型 x-png。在某些情况下,检测到的 MIME 类型可能与向后兼容的公认值不同。然后它不起作用。解决此问题的方法是更改图像的扩展名。