我安装了bootstrap与SASS (Compass without Rails),我有一些问题:
-
字体url如下:
file:///F:/stylesheets/fonts/bootstrap/glyphicons-halflings-regular.ttf
和页面无法找到这些字体,因为url必须是这样的:
file:///F:/SOMETHINGELSE/PROJECT/stylesheets/fonts/bootstrap/glyphicons-halflings-regular.ttf
我该如何修复它?
-
如何构建项目?
默认情况下,Compass为字体设置的路径可能不正确,具体取决于您的目录结构。
http://compass-style.org/help/tutorials/configuration-reference/您可能需要在config.rb中添加这样的内容:
fonts_dir = "path/to/your/fonts"