首先,很抱歉我的英语……。我在项目中使用symfony2,在我使用asset:install命令之前,一切都很好。由于这一点,我的字形图标从字体棒不工作。这就是我的css:
@font-face {
font-family: 'Glyphicons Halflings';
src: url('glyphicons-halflings-regular.eot');
src: url('glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
url('glyphicons-halflings-regular.woff') format('woff'),
url('glyphicons-halflings-regular.ttf') format('truetype'),
url('glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
}和我的布局:
<link href="{{ asset('bundles/oahcore/css/moncss.css') }}" rel="stylesheet" type="text/css" />有什么想法吗?
发布于 2015-11-30 18:16:17
所有的字体文件都应该在字体中提到的位置。将font-family:'Glyphicons Halflings‘用于需要应用此字体的元素
https://stackoverflow.com/questions/33995882
复制相似问题