How can I use Google's Roboto font on a website?

前端 未结 13 880
旧巷少年郎
旧巷少年郎 2020-12-12 10:23

I want to use Google\'s Roboto font on my website and I am following this tutorial:

http://www.maketecheasier.com/use-google-roboto-font-everywhere/2012/03/15

<
13条回答
  •  一生所求
    2020-12-12 11:01

    Old post, I know.

    This is also possible using CSS @import url:

    @import url(http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300ita‌​lic,400italic,500,500italic,700,700italic,900italic,900);
    html, body, html * {
      font-family: 'Roboto', sans-serif;
    }
    

提交回复
热议问题