【发布时间】:2012-09-02 14:36:27
【问题描述】:
我的目标是一些带有 CSS 的 SVG 图像用作一些元素的背景,但遇到了一些奇怪的问题。 going directly to the image 工作正常,但在 CSS 中使用时出现以下错误:
Resource interpreted as Image but transferred with MIME type text/xml
我已将 .htaccess 文件添加到使用以下代码提供图像的目录中,但没有帮助:
AddType image/svg+xml svg
建议?
【问题讨论】:
-
这是 chrome 的,对吧?请具体说明您在哪个浏览器中看到此内容。
标签: css apache .htaccess svg mime-types