字符图标显示为框框
来源:17-16 cartcontrol组件(2)

littlefire
2018-07-27
老师,你好,我的字符图标显示不正常
我在icon.styl里面引用方式为
@font-face {
font-family: 'sell-icon';
src: url('/src/common/fonts/sell-icon.eot?o23a15');
src: url('/src/common/fonts/sell-icon.eot?o23a15#iefix') format('embedded-opentype'),
url('/src/common/fonts/sell-icon.ttf?o23a15') format('truetype'),
url('/src/common/fonts/sell-icon.woff?o23a15') format('woff'),
url('/src/common/fonts/sell-icon.svg?o23a15#sell-icon') format('svg');
font-weight: normal;
font-style: normal;
}
路径应该是load了,但不知道图标为啥不对。图标文件不是我自己制作的,是从慕课网里面资料拷贝过来的。谢谢
2回答
-
littlefire
提问者
2018-07-27
我用
@font-face
font-family: 'sell-icon'
src: url('../fonts/sell-icon.eot?a41aar')
src: url('../fonts/sell-icon.eot?a41aar#iefix') format('embedded-opentype'),
url('../fonts/sell-icon.ttf?a41aar') format('truetype'),
url('../fonts/sell-icon.woff?a41aar') format('woff'),
url('../fonts/sell-icon.svg?a41aar#sell-icon') format('svg')
font-weight: normal
font-style: normal
却报如下错误:
明明路径是对的,为啥报说找不到
112018-07-27 -
ustbhuangyi
2018-07-27
确认一下请求地址是否正确
00
相似问题