我的 HTML 在本地系统中并指向 css
<link rel="stylesheet" href="http://nagasystems.in/tamil/stylesheet/common.css" type="text/css" charset="utf-8" />
我的字体路径文件夹是
http://nagasystems.in/tamil/stylesheet/
我有以下字体
bamini-webfont.eot
bamini-webfont.svg
bamini-webfont.ttf
bamini-webfont.woff
bamini-webfont.woff2
现在,如果我在浏览器中加载本地 HTML,则字体未加载...在所有浏览器中测试。但是,如果 html、css 和字体在线,它可以工作,或者如果这三个都在本地,它可以工作..
检查下面的链接,所有三个都在线有效
http://nagasystems.in/tamil/
请帮助我..打破我的头脑寻求解决方案...
更新: chrome控制台中的错误“来自源'nagasystems.in'的字体;已被跨源资源共享策略阻止加载:请求的资源上不存在'Access-Control-Allow-Origin'标头。来源'null '因此不允许访问"