1

我正在使用 twitter-bootstrap-rails gem,在bootstrap_and_overrides.css.less文件中我有下一行:

// If you'd like to override bootstrap's own variables, you can do so here as well
// See http://twitter.github.com/bootstrap/less.html for their names and documentation
//
// Example:
// @linkColor: #ff0000;

但是当我取消注释时,@linkColor: #ff0000;我收到以下错误:

Invalid CSS after "...icons-halflings": expected ")", was ".png"");"

我做错了什么,还是lib的问题?

4

1 回答 1

5

似乎删除.pngs 等改变

// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');

进入

// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white');

解决了这个问题。我认为这是一个库错误

于 2012-06-09T07:49:26.577 回答