在使用twitter-bootstrap-rails gem时,字形图标不起作用。我注意到生成的css具有:
background-image: "/assets/twitter/bootstrap/glyphicons-halflings.png"这不是一个有效的css属性,所以它当然不能工作。我没有做任何特别的事情,这是直接从sprites.less文件中拉入的,该文件具有:
background-image: @iconSpritePath;我认为这应该在结果css中转换为background: url(),但这似乎并没有发生。
发布于 2014-02-17 10:16:57
试试这个:
background-image: asset-url("glyphicons-halflings.png");https://stackoverflow.com/questions/21819452
复制相似问题