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

sを削除.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');

問題を解決しました。これはライブラリのエラーだと思います

于 2012-06-09T07:49:26.577 に答える