Google Fonts doesn't load in mobile

2019-05-28 13:32发布

问题:

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!

标签: css mobile fonts