Less v2无法编译Twitter的Bootstrap 2.x [英] Less v2 does not compile Twitter's Bootstrap 2.x
本文介绍了Less v2无法编译Twitter的Bootstrap 2.x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
编译Twitter的Bootstrap 2.3.2时.用更少的2我发现出现以下错误:
When compiling Twitter's Bootstrap 2.3.2. with Less 2 i found to following error:
NameError: #grid > .core > .span is undefined in /home/bootstrap-2.3.2/less/navbar.less on line 199, column 3:
198 .navbar-fixed-bottom .container {
199 #grid > .core > .span(@gridColumns);
200 }
我该如何解决?
推荐答案
在less/navbar.less
文件中:
替换:
.navbar-static-top .container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
#grid > .core > .span(@gridColumns);
}
使用:
.navbar-static-top .container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: (@gridColumnWidth * @gridColumns) + (@gridGutterWidth * (@gridColumns - 1));
}
另请参见:使用Less覆盖类定义
这篇关于Less v2无法编译Twitter的Bootstrap 2.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文