« 上一篇下一篇 »

关于https://fonts.googleapis.com/css?family=Source+Sans+Pro……加载字体网页打开变慢解决办法

 

使用adminTLE时,有时候出现

 https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic net::ERR_CONNECTION_TIMED_OUT

 

google找到这样的解答

http://stackoverflow.com/questions/15930003/downloading-a-google-font-and-setting-up-an-offline-site-that-uses-it

http://my.oschina.net/bubifengyun/blog/596332?fromerr=pUgEvQq3

解决办法

找到字体

https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic

下载下来,保存为fontgoogle.css

找到载入字体的文件 AdminLTE.min.css

@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic);

将其改为

@import "fontgoogle.css";