How to make this Google Font work on Internet Explorer 11

前端 未结 1 1307
误落风尘
误落风尘 2021-01-17 18:38

I use Montserrat font on my website, but it doesn\'t display on IE11 (windows 7). I put this other question some days ago: Montserrat font isn't displayed on IE 10 and 1

相关标签:
1条回答
  • 2021-01-17 19:13

    Use:

    @import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);
    

    To call it inside your stylesheet and:

    font-family: 'Montserrat', sans-serif;
    

    To make something that font..

    From google fonts: "Note: For best display in IE, make the stylesheet tag the first element in the HTML section. In IE, if the link is placed after tags, the entire page will block and not display anything until the font is loaded."

    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    

    If that does not work, try this: https://developers.google.com/fonts/docs/webfont_loader#Example

    This will make every browser "behave like Firefox".

    0 讨论(0)
提交回复
热议问题