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'文件都來自同一個文件夾。) –