Using a different font with twitter bootstrap

后端 未结 5 442
别那么骄傲
别那么骄傲 2020-12-08 00:54

I want to use a different font for my website, which is not a regular webfont. I have created EOT files already. Now how can I integrate those fonts with twitter bootstrap ?

5条回答
  •  独厮守ぢ
    2020-12-08 01:10

    The easiest way I've seen is to use Google Fonts.

    Go to Google Fonts and choose a font, then Google will give you a link to put in your HTML.

    Google's link to your font

    Then add this to your custom.css:

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Your Font' !important;
    }
    p, div {
        font-family: 'Your Font' !important;
    }
    

    or

    body {
       font-family: 'Your Font' !important;
    }
    

提交回复
热议问题