Google Fonts doesn't load in mobile

戏子无情 提交于 2019-12-10 09:46:49

问题


I've read similiar threads but this problem is a bit different: I have:

<head>
    <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic' rel='stylesheet' type='text/css'>
//rest of the code...

And in the css style file I have:

body{
font-family: 'Source Sans Pro', sans-serif;
    //rest of the code...

It works perfectly in the browser, but when I enter with my mobile, the words just dissapear, and the page is loding forever with only the structure. I'm still developing the webpage, so I was trying it with the mobile to check everything works.

1.- I've tried @import url(http://fonts.googleapis.com/.... and nothing.

2.- I've changed the font to Arial in the css file and it works.

3.- My mobile is Nexus 4 with chrome.

4.- I've tried with another font of Google Api and nothing.

5.- It works perfect in the desktop browser. Even in IE.

Anyone knows what could be the problem? Thank you!

来源:https://stackoverflow.com/questions/20842381/google-fonts-doesnt-load-in-mobile

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!