【发布时间】:2013-10-12 17:00:14
【问题描述】:
我一直在四处搜索,发现大量不同的建议文件路径,但没有一个适合我。
我要把background-image: url("/../img/glyphicons-halflings.png");改成什么?
【问题讨论】:
-
您将 png 文件放在项目中的什么位置?
-
/Users/adamzerner/collegeanswerz/app/assets/images/glyphicons-halflings.png -
如果你没有对你的资产设置做一些花哨的事情,那么它应该是
/assets/glyphicons-halflings.png。通常人们会把他们没有写的东西放在vendor/assets顺便说一句。 -
它工作正常,谢谢!如果你想写出来,我给你一个最佳答案。
-
顺便说一句,为了我的信息,正确的路径怎么会跳过图像?
标签: css ruby-on-rails twitter-bootstrap glyphicons twitter-bootstrap-2