较少的设置不起作用

时间:2012-05-10 17:03:13

标签: css less

我尝试少安装,但它无法正常工作。

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
}

有人有想法吗?

1 个答案:

答案 0 :(得分:2)

好的,我找到了。把它放到你的httpd.conf apache文件中:

Header set Access-Control-Allow-Origin "*"