Resource interpreted as Script but transferred with MIME type text/x-c++

怎甘沉沦 提交于 2019-12-01 05:45:43

You probably want your link tag to say:

<link rel="stylesheet/less" type="text/css" href="404.less">

That said, if this is being served from a webserver it could be that that's detecting the mime type wrong from the file extension. If it's an apache server though, there's an easy fix. Add this to/create a .htaccess file in your webroot, containing the line:

AddType text/css less 

I had a similar issue with twitter follow-me buttons when I was reviewing local html files in chrome. To fix this I just fired up web matrix 2.0 and pointed at my folder. Hope this helps.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!