在试图让我的SCSS进口一些字体我遇到以下:@include字体面SCSS问题
我精确复制the docs from the compass website,但是当CSS被编译罗盘增加了随机数字背后我src
的网址。该SCSS代码我写的,所得CSS看起来像这样
SCSS
@include font-face("NexaBold", font-files("nexa_bold-webfont.woff", "nexa_bold-webfont.ttf", "nexa_bold-webfont.svg", "nexa_bold-webfont.eot"));
得到的CSS
@font-face {
font-family: "NexaBold";
src: url('/fonts/nexa_bold-webfont.woff?1417439024') format('woff'), url('/fonts/nexa_bold-webfont.ttf?1417439024') format('truetype'), url('/fonts/nexa_bold-webfont.svg?1417439024') format('svg'), url('/fonts/nexa_bold-webfont.eot?1417439024') format('embedded-opentype');
}
谢谢!
可能重复从指南针生成的精灵图像文件名?](http://stackoverflow.com/questions/9183133/how-to-remove-the-hash-from-compasss-generated-sprite-image-filenames)(将随机数添加到源URL被Compass称为“缓存清除”,它被用于各种来源,而不仅仅是字体。) – hon2a 2014-12-01 21:23:04