1
我试图安装少,但它不工作。少安装不起作用
萤火报告这个错误:
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
我的代码:
<link type="text/css" href="http://static.mydomain.com/css/colors.less" rel="stylesheet/less" />
<script type="text/javascript" src="http://static.mydomain.com/js/less-1.2.2.min.js" ></script>
头.LESS文件:
Accept-Ranges bytes
Connection Keep-Alive
Content-Length 889
Content-Type text/css
Date Thu, 10 May 2012 16:56:51 GMT
Etag "5cbb93-379-4bedaed496200"
Keep-Alive timeout=5, max=100
Last-Modified Mon, 30 Apr 2012 00:56:40 GMT
Server Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6
及其内容:
#overflow {
.a { color: #111111 - #444444; } // #000000
.b { color: #eee + #fff; } // #ffffff
.c { color: #aaa * 3; } // #ffffff
.d { color: #00ee00 + #009900; } // #00ff00
}
有人有想法吗?
的可能重复(http://stackoverflow.com/questions/9061242/less-js-does-不与cdns工作) – thirtydot
种类。不一样的后果。 – JuSchz
对于任何其他人在这里结束的说明:我的Web主机的Web服务器上发生了同样的错误。这是错误地发送空的答复,因为'.less'文件/ MIME类型是未知的。配置Web服务器以正确提供.less文件修复它。 (这不是一个跨域请求,所有'.js' /'.less'文件都来自同一个文件夹。) –