更新时间:2021-09-27 21:39:20
您可能希望您的链接标记说:
You probably want your link tag to say:
<link rel="stylesheet/less" type="text/css" href="404.less">
也就是说,如果这是从一个web服务器提供服务,可能是检测mime类型错误从文件扩展名。如果它是一个apache服务器,虽然,有一个简单的修复。添加到/在您的webroot中创建一个.htaccess文件,包含以下行:
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