我使用的是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"");"是我做错了什么,还是这是自由党的问题?
发布于 2012-06-09 15:49:27
删除.png似乎会发生变化
// 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');解决了这个问题。我认为这是一个库错误
https://stackoverflow.com/questions/10959224
复制相似问题