您好,我是 Codeigniter 的新手。我正在通过 css 为我的网站使用外部字体文件。这是我的CSS代码:
@font-face {
font-family: 'ElegantIcons';
src:url('http://localhost/findacare/font/ElegantIcons.eot'),
url('http://localhost/findacare/font/ElegantIcons.eot?#iefix') format('embedded-opentype'),
url('http://localhost/findacare/font/ElegantIcons.woff') format('woff'),
url('http://localhost/findacare/font/ElegantIcons.svg#ElegantIcons') format('svg'),
url('http://localhost/findacare/font/ElegantIcons.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
但是我在加载文件时收到以下错误文件
GET http://localhost/findacare/font/ElegantIcons.woff 404 (Not Found) manage_profile:1
GET http://localhost/findacare/font/ElegantIcons.svg 404 (Not Found) /findacare/font/ElegantIcons.svg#ElegantIcons:1
GET http://localhost/findacare/font/ElegantIcons.ttf 404 (Not Found) /findacare/font/ElegantIcons.ttf:1
我的文件结构是:
findacare-
-application
-css
-font
-images
即使给出绝对路径,我也检查了很多次。任何人都可以帮助我。