twitter-bootstrap – 较少v2不编译Twitter的Bootstrap 2.x
发布时间:2020-12-18 00:06:50 所属栏目:安全 来源:网络整理
导读:当编译Twitter的Bootstrap 2.3.2。 with Less 2我发现跟随错误: 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);
当编译Twitter的Bootstrap 2.3.2。 with Less 2我发现跟随错误:
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 } 我如何解决这个问题? 解决方法
我能够避免错误,而无需修改Bootstrap文件,通过创建一个新的mixin在Bootstrap混合后加载:
#grid { .core { .span(@gridColumns) { width: (@gridColumnWidth * @gridColumns) + (@gridGutterWidth * (@gridColumns - 1)); } } }; 这对我们更好,因为我们避免修补contrib包。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |