Why is IE8 not loading my eot files?

前端 未结 4 1566
轻奢々
轻奢々 2020-12-19 04:29

I downloaded some otf fonts and then converted them to eot using: https://onlinefontconverter.com but when I view the site in IE8, the fonts do not show (they show in Chrome

4条回答
  •  [愿得一人]
    2020-12-19 04:59

    Try this

            @font-face
        {
            font-family: 'RobotoCondensed';
            src: url('Roboto-Condensed.eot');
      src: url('Roboto-Condensed.eot?#iefix') format('embedded-opentype'),
             url('Roboto-Condensed.woff') format('woff'),
             url('Roboto-Condensed.ttf') format('truetype'),
             url('Roboto-Condensed.svg#') format('svg');
    
    }
    
        .myDiv
        {
            font-family: RobotoCondensed, Arial, Helvetica;
            font-size: 10px;
            color: #e8e8e8;
        }
    

提交回复
热议问题