1

我尝试安装较少,但它不工作。

Firebug 报告此错误:

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
}

有人有想法吗?

4

1 回答 1

2

好的,我找到了。刚刚将它放入您的 httpd.conf apache 文件中:

Header set Access-Control-Allow-Origin "*"
于 2012-05-10T17:19:31.230 回答