使用阿里图库过程中为了兼容性,使用了unicode引入方法,如下:
1.css添加生成的@font-face
2.写iconfontfff的样式:
3.页面中引入:
4.表现如下:
不显示,求解,为什么?
使用阿里图库过程中为了兼容性,使用了unicode引入方法,如下:
1.css添加生成的@font-face
2.写iconfontfff的样式:
3.页面中引入:
4.表现如下:
不显示,求解,为什么?
[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'font_family' !important;
speak: none;
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;
}
在css里 .iconfont 替换成上面的就好了
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
你的faont-family:"iconfontyyy"写错了吧,你定义的名字不是iconfont吗。。。