我已經從fontello下載了一個自定義的圖標字體,並打算在我的流星應用中使用它。 我嘗試了下載的軟件包附帶的演示,並且字體顯示正常。這裏是我的CSS:fontello的圖標字體與Meteor js不兼容
@font-face {
font-family: 'fontello';
src: url('fonts/fontello.eot?98991264');
src: url('fonts/fontello.eot?98991264#iefix') format('embedded-opentype'),
url('fonts/fontello.woff?98991264') format('woff'),
url('fonts/fontello.ttf?98991264') format('truetype'),
url('fonts/fontello.svg?98991264#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
}
.icon-twitter:before { content: '\e805'; } /* '' */
.icon-github-circled:before { content: '\e804'; } /* '' */
.icon-pencil:before { content: '\e801'; } /* '' */
.icon-cancel:before { content: '\e802'; } /* '' */
.icon-chat:before { content: '\e800'; } /* '' */
我的文件夾結構,像這樣/client/css/styles.css
和字體/client/css/fonts/
在我的HTML我已經加入此標記<i class="icon-twitter"></i>
,不幸的是我看到的,當我查看網頁,這是所有我看到 任何幫助將是偉大的。由於