2012-09-15 42 views
5

它工作的很好,但不幸的是我的网络主机不支持.less文件扩展名... 当我输入example.com/styles.less时会给出错误。.Less文件扩展名未编译

错误:

The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

当我上传的另一个托管一切正常......

我包括:

<link rel="stylesheet/less" type="text/css" href="styles.less"> 
<script src="less.js" type="text/javascript"></script> 

回答

2

您应该能够改扩建到.css(或者你的虚拟主机允许的其他东西),它仍然是会工作。据我所知,less.js只是看着rel="stylesheet/less"

这似乎是与文档一致:http://lesscss.org/#-client-side-usage

+0

是的,它的工作thnk你... –