[英]flaticon icons work when hosted locally but not working when online
I have used a great number of icons on a website am working on. 我正在使用一个网站上的大量图标。 I set up the files very well and I can't seem to find a problem. 我已经很好地设置了文件,但似乎找不到问题。 I'm still a newbie. 我还是新手。
Make sure you have added those files and accessing them properly... 确保已添加这些文件并正确访问它们...
Your code for @font-face will be like this (path should be with or without 2 dots - depending upon its location), I think font files names, you are hosting are in small case letters 您用于@ font-face的代码将是这样的(路径应带有或不带有2个点-取决于其位置), 我认为您托管的字体文件名称是小写字母
@font-face {
font-family: "Flaticon";
src: url("../flaticon.eot");
src: url("../flaticon.eot?#iefix") format("embedded-opentype"),
url("../flaticon.woff") format("woff"),
url("../flaticon.ttf") format("truetype"),
url("../flaticon.svg#Flaticon") format("svg");
font-weight: normal;
font-style: normal;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.