我的所有图标都可以,但没有一个图标::before
为我的span
ori
或div
.
这是我的图标不显示:
这是我正确的图标并::before
为i
:
@font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.eot?2b1f8l');
src: url('fonts/icomoon.eot?2b1f8l#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?2b1f8l') format('truetype'),
url('fonts/icomoon.woff?2b1f8l') format('woff'),
url('fonts/icomoon.svg?2b1f8l#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}