首页 >web前端 >html教程 >question about import google file_html/css_WEB-ITnose

question about import google file_html/css_WEB-ITnose

WBOY
WBOY原创
2016-06-24 11:24:53967浏览

1. question descibe;

    once, one css file(app.css) of my web project has sentence like this:

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

    then if you refresh your web page, you will wait a long time until the page dead.

    so what's wrong???

2. Reason:

   when you are in somearea that not allowed to connect to the whole internet, that means you cannot get the file ,

   so the brower will connect all the time.

  

3. Solution:

   change the code like this:

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

   republish the project to the web server.

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn