如何使用谷歌字体

国内网站使用谷歌字体是不方便的,解决办法以下
html

一、将谷歌的地址换成360的api

http://fonts.googleapis.com 换成 http://fonts.useso.com 字体

二、只作了第一步仍是有问题的,会报错:网站

No 'Access-Control-Allow-Origin' header is present on the requested resourceui

解决办法是给html页面添加头信息google

<meta http-equiv="Access-Control-Allow-Origin" content="*">spa

相关文章
相关标签/搜索