简体   繁体   English

flaticon图标在本地托管时起作用,但在联机时不起作用

[英]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.

相关问题 引导程序图标在本地加载,但不在联机时加载 - Bootstrap icons are loaded locally but not when online CSS媒体查询在本地看起来不错,但在在线托管时则不然 - CSS media query looks good locally but not when hosted online 我的网站在本地托管时使用 flex 和 bootstrap 进行响应。 它现在在线托管并且 flex 无法在移动站点上运行 - My site is responsive using flex and bootstrap when it's locally hosted. It's now hosted online and flex won't work on mobile site 当我提供 FontAwesome http 链接时,图标正在工作,但是当在本地托管时它不工作 - When I providing FontAwesome http link then icons are working but when host it locally its not working KineticJS图像无法在本地运行,有时可以在线运行 - KineticJS images not working locally, sometimes work online 在本地托管时不显示Google字体 - Google Font not displaying when hosted locally Javascript图片幻灯片在本地工作,但在托管时不行 - Javascript image slideshow works locally, but not when hosted 来自托管在不同服务器上的 flaticon 的自定义图标字体不起作用 - Custom icon font from flaticon hosted on a different server doesn't work Bootstrap CSS在本地托管时无法正确加载字体 - Bootstrap CSS not loading fonts correctly when hosted locally 通过字体使用的图标(本地托管)不会在Firefox中显示 - Icons used via fonts (hosted locally) won't display in Firefox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM